Files
Linux/lib
Eric Dumazet 354259fa73 net: remove skb->vlan_present
skb->vlan_present seems redundant.

We can instead derive it from this boolean expression:

vlan_present = skb->vlan_proto != 0 || skb->vlan_tci != 0

Add a new union, to access both fields in a single load/store
when possible.

	union {
		u32	vlan_all;
		struct {
		__be16	vlan_proto;
		__u16	vlan_tci;
		};
	};

This allows following patch to remove a conditional test in GRO stack.

Note:
  We move remcsum_offload to keep TC_AT_INGRESS_MASK
  and SKB_MONO_DELIVERY_TIME_MASK unchanged.

Signed-off-by: Eric Dumazet <[email protected]>
Acked-by: Yonghong Song <[email protected]>
Acked-by: Martin KaFai Lau <[email protected]>
Signed-off-by: Jakub Kicinski <[email protected]>
2022-11-11 18:18:05 -08:00
..
…
…
…
…
…
…
…
…
…
…
2022-09-26 12:19:12 -07:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2022-09-01 18:04:43 +02:00
…
…
…
…
…
…
…
…
…
…
…
…
2022-07-10 13:55:49 -07:00
…
2022-10-03 14:03:21 -07:00
2022-10-03 14:03:22 -07:00
…
…
…
…
…
…
2022-11-08 15:06:56 -08:00
…
2022-10-03 17:34:32 -07:00
…
…
…
…
…
…
…
…
…
2022-11-11 18:18:05 -08:00
…
…
…
…
…
…