linux_dsm_epyc7002/drivers/net/ethernet/cavium/thunder
Jesper Dangaard Brouer 27e95e3648 thunderx: setup xdp_rxq_info
This driver uses a bool scheme for "enable"/"disable" when setting up
different resources.  Thus, the hook points for xdp_rxq_info is done
in the same function call nicvf_rcv_queue_config().  This is activated
through enable/disable via nicvf_config_data_transfer(), which is tied
into nicvf_stop()/nicvf_open().

Extending driver packet handler call-path nicvf_rcv_pkt_handler() with
a pointer to the given struct rcv_queue, in-order to access the
xdp_rxq_info data area (in nicvf_xdp_rx()).

V2: Driver have no proper error path for failed XDP RX-queue info reg,
as nicvf_rcv_queue_config is a void function.

Cc: linux-arm-kernel@lists.infradead.org
Cc: Sunil Goutham <sgoutham@cavium.com>
Cc: Robert Richter <rric@kernel.org>
Signed-off-by: Jesper Dangaard Brouer <brouer@redhat.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
2018-01-05 15:21:21 -08:00
..
Makefile License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
nic_main.c net: thunderx: fix double free error 2017-11-11 19:22:34 +09:00
nic_reg.h net: thunderx: Program LMAC credits based on MTU 2016-11-16 13:28:33 -05:00
nic.h net: thunderx: Add basic XDP support 2017-05-02 15:41:21 -04:00
nicvf_ethtool.c net: thunderx: Add basic XDP support 2017-05-02 15:41:21 -04:00
nicvf_main.c thunderx: setup xdp_rxq_info 2018-01-05 15:21:21 -08:00
nicvf_queues.c thunderx: setup xdp_rxq_info 2018-01-05 15:21:21 -08:00
nicvf_queues.h thunderx: setup xdp_rxq_info 2018-01-05 15:21:21 -08:00
q_struct.h net: thunderx: Optimize RBDR descriptor handling 2017-05-02 15:41:20 -04:00
thunder_bgx.c net: thunderx: Fix BGX transmit stall due to underflow 2017-07-29 14:17:07 -07:00
thunder_bgx.h net: thunderx: Fix BGX transmit stall due to underflow 2017-07-29 14:17:07 -07:00
thunder_xcv.c net: thunderx: avoid dereferencing xcv when NULL 2017-01-31 13:07:40 -05:00