Re: [PATCH] net: Pass NULL to skb_network_protocol() when we don't care about vlan depth

2020-08-03 Thread David Miller
From: linmiaohe Date: Sat, 1 Aug 2020 17:36:05 +0800 > From: Miaohe Lin > > When we don't care about vlan depth, we could pass NULL instead of the > address of a unused local variable to skb_network_protocol() as a param. > > Signed-off-by: Miaohe Lin Applied.

[PATCH] net: Pass NULL to skb_network_protocol() when we don't care about vlan depth

2020-08-01 Thread linmiaohe
From: Miaohe Lin When we don't care about vlan depth, we could pass NULL instead of the address of a unused local variable to skb_network_protocol() as a param. Signed-off-by: Miaohe Lin --- net/core/skbuff.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/net/core/skbuff

Re: [PATCH] net: Pass NULL to skb_network_protocol() when we don't care about vlan depth

2020-07-31 Thread David Miller
From: linmiaohe Date: Thu, 30 Jul 2020 19:02:36 +0800 > From: Miaohe Lin > > When we don't care about vlan depth, we could pass NULL instead of the > address of a unused local variable to skb_network_protocol() as a param. > > Signed-off-by: Miaohe Lin Applied to net-next, thanks.

[PATCH] net: Pass NULL to skb_network_protocol() when we don't care about vlan depth

2020-07-30 Thread linmiaohe
From: Miaohe Lin When we don't care about vlan depth, we could pass NULL instead of the address of a unused local variable to skb_network_protocol() as a param. Signed-off-by: Miaohe Lin --- net/core/dev.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/net/core/dev.c b/n