diff options
author | Michael Chan <michael.chan@broadcom.com> | 2022-12-27 04:19:38 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2022-12-28 11:16:57 +0100 |
commit | 9b3e607871ea5ee90f10f5be3965fc07f2aa3ef7 (patch) | |
tree | 921d7b0a691b39675d46190967c7351e6037becb /net/packet | |
parent | bnxt_en: Simplify bnxt_xdp_buff_init() (diff) | |
download | linux-9b3e607871ea5ee90f10f5be3965fc07f2aa3ef7.tar.xz linux-9b3e607871ea5ee90f10f5be3965fc07f2aa3ef7.zip |
bnxt_en: Fix XDP RX path
The XDP program can change the starting address of the RX data buffer and
this information needs to be passed back from bnxt_rx_xdp() to
bnxt_rx_pkt() for the XDP_PASS case so that the SKB can point correctly
to the modified buffer address. Add back the data_ptr parameter to
bnxt_rx_xdp() to make this work.
Fixes: b231c3f3414c ("bnxt: refactor bnxt_rx_xdp to separate xdp_init_buff/xdp_prepare_buff")
Reviewed-by: Andy Gospodarek <andrew.gospodarek@broadcom.com>
Reviewed-by: Pavan Chebbi <pavan.chebbi@broadcom.com>
Signed-off-by: Michael Chan <michael.chan@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/packet')
0 files changed, 0 insertions, 0 deletions