|
@@ -844,12 +844,11 @@ static inline int tcp_v6_sdif(const struct sk_buff *skb)
|
|
}
|
|
}
|
|
#endif
|
|
#endif
|
|
|
|
|
|
-/* TCP_SKB_CB reference means this can not be used from early demux */
|
|
|
|
static inline bool inet_exact_dif_match(struct net *net, struct sk_buff *skb)
|
|
static inline bool inet_exact_dif_match(struct net *net, struct sk_buff *skb)
|
|
{
|
|
{
|
|
#if IS_ENABLED(CONFIG_NET_L3_MASTER_DEV)
|
|
#if IS_ENABLED(CONFIG_NET_L3_MASTER_DEV)
|
|
if (!net->ipv4.sysctl_tcp_l3mdev_accept &&
|
|
if (!net->ipv4.sysctl_tcp_l3mdev_accept &&
|
|
- skb && ipv4_l3mdev_skb(TCP_SKB_CB(skb)->header.h4.flags))
|
|
|
|
|
|
+ skb && ipv4_l3mdev_skb(IPCB(skb)->flags))
|
|
return true;
|
|
return true;
|
|
#endif
|
|
#endif
|
|
return false;
|
|
return false;
|