summaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/allwinner
diff options
context:
space:
mode:
authorJesper Dangaard Brouer2018-01-03 11:25:18 +0100
committerAlexei Starovoitov2018-01-06 00:21:20 +0100
commit0ddf543226acacfb9f521dafc6c817d5b04c7b1f (patch)
tree7ecdc35234c261098aefc513df21dfd8354664c7 /drivers/net/ethernet/allwinner
parentxdp: base API for new XDP rx-queue info concept (diff)
downloadkernel-qcow2-linux-0ddf543226acacfb9f521dafc6c817d5b04c7b1f.tar.gz
kernel-qcow2-linux-0ddf543226acacfb9f521dafc6c817d5b04c7b1f.tar.xz
kernel-qcow2-linux-0ddf543226acacfb9f521dafc6c817d5b04c7b1f.zip
xdp/mlx5: setup xdp_rxq_info
The mlx5 driver have a special drop-RQ queue (one per interface) that simply drops all incoming traffic. It helps driver keep other HW objects (flow steering) alive upon down/up operations. It is temporarily pointed by flow steering objects during the interface setup, and when interface is down. It lacks many fields that are set in a regular RQ (for example its state is never switched to MLX5_RQC_STATE_RDY). (Thanks to Tariq Toukan for explanation). The XDP RX-queue info for this drop-RQ marked as unused, which allow us to use the same takedown/free code path as other RX-queues. Driver hook points for xdp_rxq_info: * reg : mlx5e_alloc_rq() * unused: mlx5e_alloc_drop_rq() * unreg : mlx5e_free_rq() Tested on actual hardware with samples/bpf program Cc: Saeed Mahameed <saeedm@mellanox.com> Cc: Matan Barak <matanb@mellanox.com> Cc: Tariq Toukan <tariqt@mellanox.com> Signed-off-by: Jesper Dangaard Brouer <brouer@redhat.com> Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Diffstat (limited to 'drivers/net/ethernet/allwinner')
0 files changed, 0 insertions, 0 deletions