bnxt_en: Refactor bnxt_gro_skb().
Newer chips require different logic to handle GRO packets. So refactor the code so that we can call different functions depending on the chip. Signed-off-by: Michael Chan <michael.chan@broadcom.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:

committed by
David S. Miller

parent
659c805cc0
commit
309369c9b3
@@ -953,6 +953,9 @@ struct bnxt {
|
||||
struct bnxt_rx_ring_info *rx_ring;
|
||||
struct bnxt_tx_ring_info *tx_ring;
|
||||
|
||||
struct sk_buff * (*gro_func)(struct bnxt_tpa_info *, int, int,
|
||||
struct sk_buff *);
|
||||
|
||||
u32 rx_buf_size;
|
||||
u32 rx_buf_use_size; /* useable size */
|
||||
u32 rx_ring_size;
|
||||
|
Reference in New Issue
Block a user