Skip to content

Commit 38f7b44

Browse files
committed
Merge branch 'net-gro-gro_drop-deprecation'
Eric Dumazet says: ==================== net-gro: GRO_DROP deprecation GRO_DROP has no practical use and can be removed, once ice driver is cleaned up. This removes one useless conditional test in napi_gro_frags(). ==================== Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Jakub Kicinski <[email protected]>
2 parents efb5b33 + 1d11fa6 commit 38f7b44

File tree

3 files changed

+1
-18
lines changed

3 files changed

+1
-18
lines changed

drivers/net/ethernet/intel/ice/ice_txrx_lib.c

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -191,12 +191,7 @@ ice_receive_skb(struct ice_ring *rx_ring, struct sk_buff *skb, u16 vlan_tag)
191191
if ((rx_ring->netdev->features & NETIF_F_HW_VLAN_CTAG_RX) &&
192192
(vlan_tag & VLAN_VID_MASK))
193193
__vlan_hwaccel_put_tag(skb, htons(ETH_P_8021Q), vlan_tag);
194-
if (napi_gro_receive(&rx_ring->q_vector->napi, skb) == GRO_DROP) {
195-
/* this is tracked separately to help us debug stack drops */
196-
rx_ring->rx_stats.gro_dropped++;
197-
netdev_dbg(rx_ring->netdev, "Receive Queue %d: Dropped packet from GRO\n",
198-
rx_ring->q_index);
199-
}
194+
napi_gro_receive(&rx_ring->q_vector->napi, skb);
200195
}
201196

202197
/**

include/linux/netdevice.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -376,7 +376,6 @@ enum gro_result {
376376
GRO_MERGED_FREE,
377377
GRO_HELD,
378378
GRO_NORMAL,
379-
GRO_DROP,
380379
GRO_CONSUMED,
381380
};
382381
typedef enum gro_result gro_result_t;

net/core/dev.c

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -6070,10 +6070,6 @@ static gro_result_t napi_skb_finish(struct napi_struct *napi,
60706070
gro_normal_one(napi, skb);
60716071
break;
60726072

6073-
case GRO_DROP:
6074-
kfree_skb(skb);
6075-
break;
6076-
60776073
case GRO_MERGED_FREE:
60786074
if (NAPI_GRO_CB(skb)->free == NAPI_GRO_FREE_STOLEN_HEAD)
60796075
napi_skb_free_stolen_head(skb);
@@ -6158,10 +6154,6 @@ static gro_result_t napi_frags_finish(struct napi_struct *napi,
61586154
gro_normal_one(napi, skb);
61596155
break;
61606156

6161-
case GRO_DROP:
6162-
napi_reuse_skb(napi, skb);
6163-
break;
6164-
61656157
case GRO_MERGED_FREE:
61666158
if (NAPI_GRO_CB(skb)->free == NAPI_GRO_FREE_STOLEN_HEAD)
61676159
napi_skb_free_stolen_head(skb);
@@ -6223,9 +6215,6 @@ gro_result_t napi_gro_frags(struct napi_struct *napi)
62236215
gro_result_t ret;
62246216
struct sk_buff *skb = napi_frags_skb(napi);
62256217

6226-
if (!skb)
6227-
return GRO_DROP;
6228-
62296218
trace_napi_gro_frags_entry(skb);
62306219

62316220
ret = napi_frags_finish(napi, skb, dev_gro_receive(napi, skb));

0 commit comments

Comments
 (0)