File tree Expand file tree Collapse file tree 1 file changed +1
-9
lines changed Expand file tree Collapse file tree 1 file changed +1
-9
lines changed Original file line number Diff line number Diff line change @@ -883,14 +883,6 @@ void ipv6_exthdrs_exit(void)
883
883
Hop-by-hop options.
884
884
**********************************/
885
885
886
- /*
887
- * Note: we cannot rely on skb_dst(skb) before we assign it in ip6_route_input().
888
- */
889
- static inline struct net * ipv6_skb_net (struct sk_buff * skb )
890
- {
891
- return skb_dst (skb ) ? dev_net (skb_dst (skb )-> dev ) : dev_net (skb -> dev );
892
- }
893
-
894
886
/* Router Alert as of RFC 2711 */
895
887
896
888
static bool ipv6_hop_ra (struct sk_buff * skb , int optoff )
@@ -941,7 +933,7 @@ static bool ipv6_hop_ioam(struct sk_buff *skb, int optoff)
941
933
goto drop ;
942
934
943
935
/* Ignore if the IOAM namespace is unknown */
944
- ns = ioam6_namespace (ipv6_skb_net (skb ), trace -> namespace_id );
936
+ ns = ioam6_namespace (dev_net (skb -> dev ), trace -> namespace_id );
945
937
if (!ns )
946
938
goto ignore ;
947
939
You can’t perform that action at this time.
0 commit comments