• Jesper Dangaard Brouer's avatar
    thunderx: setup xdp_rxq_info · 27e95e36
    Jesper Dangaard Brouer authored
    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: default avatarJesper Dangaard Brouer <brouer@redhat.com>
    Signed-off-by: default avatarAlexei Starovoitov <ast@kernel.org>
    27e95e36
nicvf_queues.c 50.8 KB