net: add skb_get_dsfield() helper
authorEric Dumazet <edumazet@google.com>
Thu, 14 Oct 2021 17:59:17 +0000 (10:59 -0700)
committerDavid S. Miller <davem@davemloft.net>
Fri, 15 Oct 2021 10:33:08 +0000 (11:33 +0100)
commit70e939ddea7f014b94fe001db65c3efc986e4add
treeb5a59855e80fa786405ff779cb840d246b6ce84e
parent19757cebf0c5016a1f36f7fe9810a9f0b33c0832
net: add skb_get_dsfield() helper

skb_get_dsfield(skb) gets dsfield from skb, or -1
if an error was found.

This is basically a wrapper around ipv4_get_dsfield()
and ipv6_get_dsfield().

Used by following patch for fq_codel.

Signed-off-by: Eric Dumazet <edumazet@google.com>
Cc: Neal Cardwell <ncardwell@google.com>
Cc: Ingemar Johansson S <ingemar.s.johansson@ericsson.com>
Cc: Tom Henderson <tomh@tomh.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/inet_ecn.h