bnxt_en: Simplify bnxt_xdp_buff_init()
authorMichael Chan <michael.chan@broadcom.com>
Tue, 27 Dec 2022 03:19:37 +0000 (22:19 -0500)
committerDavid S. Miller <davem@davemloft.net>
Wed, 28 Dec 2022 10:16:57 +0000 (10:16 +0000)
commitbbfc17e50ba2ed18dfef46b1c433d50a58566bf1
tree50b15fdad97b9722e659f3f0b1daa0543d5f601f
parent0020ae2a4aa81becd182231bf48acd66c86c86dd
bnxt_en: Simplify bnxt_xdp_buff_init()

bnxt_xdp_buff_init() does not modify the data_ptr or the len parameters,
so no need to pass in the addresses of these parameters.

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: Somnath Kotur <somnath.kotur@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>
drivers/net/ethernet/broadcom/bnxt/bnxt.c
drivers/net/ethernet/broadcom/bnxt/bnxt_xdp.c
drivers/net/ethernet/broadcom/bnxt/bnxt_xdp.h