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:
Michael Chan
2016-06-13 02:25:34 -04:00
committed by David S. Miller
parent 659c805cc0
commit 309369c9b3
2 changed files with 36 additions and 19 deletions

View File

@@ -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;