diff options
author | Jesper Dangaard Brouer <[email protected]> | 2018-01-03 11:25:23 +0100 |
---|---|---|
committer | Alexei Starovoitov <[email protected]> | 2018-01-05 15:21:21 -0800 |
commit | 871288248de23d5c87433dcd94910ff813495588 (patch) | |
tree | 7a223dd7e7120d99875039d96d50b19a939af834 /tools/perf/scripts/python/net_dropmonitor.py | |
parent | 0ddf543226acacfb9f521dafc6c817d5b04c7b1f (diff) |
i40e: setup xdp_rxq_info
The i40e driver has a special "FDIR" RX-ring (I40E_VSI_FDIR) which is
a sideband channel for configuring/updating the flow director tables.
This (i40e_vsi_)type does not invoke XDP-ebpf code.
As suggested by Björn (V2): Instead of marking this I40E_VSI_FDIR RX-ring
a special case, reverse the logic and only select RX-rings of type
I40E_VSI_MAIN to register xdp_rxq_info's for.
Driver hook points for xdp_rxq_info:
* reg : i40e_setup_rx_descriptors (via i40e_vsi_setup_rx_resources)
* unreg: i40e_free_rx_resources (via i40e_vsi_free_rx_resources)
Tested on actual hardware with samples/bpf program.
V2: Fixed bug in i40e_set_ringparam (memset zero) + match on I40E_VSI_MAIN.
V4: Update patch desc that got out-of-sync with code.
Cc: [email protected]
Cc: Björn Töpel <[email protected]>
Cc: Jeff Kirsher <[email protected]>
Cc: Paul Menzel <[email protected]>
Signed-off-by: Jesper Dangaard Brouer <[email protected]>
Reviewed-by: Paul Menzel <[email protected]>
Acked-by: John Fastabend <[email protected]>
Signed-off-by: Alexei Starovoitov <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/net_dropmonitor.py')
0 files changed, 0 insertions, 0 deletions