ipv6: Use ipv6_get_dsfield() instead of ipv6_tclass().
Commit 7a3198a8
("ipv6: helper function to get tclass") introduced
ipv6_tclass(), but similar function is already available as
ipv6_get_dsfield().
We might be able to call ipv6_tclass() from ipv6_get_dsfield(),
but it is confusing to have two versions.
Signed-off-by: YOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
6502ca527f
commit
e7219858ac
3 changed files with 5 additions and 9 deletions
|
@ -77,11 +77,6 @@ static inline struct ipv6hdr *ipipv6_hdr(const struct sk_buff *skb)
|
|||
return (struct ipv6hdr *)skb_transport_header(skb);
|
||||
}
|
||||
|
||||
static inline __u8 ipv6_tclass(const struct ipv6hdr *iph)
|
||||
{
|
||||
return (ntohl(*(__be32 *)iph) >> 20) & 0xff;
|
||||
}
|
||||
|
||||
/*
|
||||
This structure contains results of exthdrs parsing
|
||||
as offsets from skb->nh.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue