net_sched: cleanups
Cleanup net/sched code to current CodingStyle and practices. Reduce inline abuse Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
7180a03118
commit
cc7ec456f8
41 changed files with 835 additions and 794 deletions
|
@ -121,7 +121,7 @@ static u32 flow_get_proto_src(struct sk_buff *skb)
|
|||
if (!pskb_network_may_pull(skb, sizeof(*iph)))
|
||||
break;
|
||||
iph = ip_hdr(skb);
|
||||
if (iph->frag_off & htons(IP_MF|IP_OFFSET))
|
||||
if (iph->frag_off & htons(IP_MF | IP_OFFSET))
|
||||
break;
|
||||
poff = proto_ports_offset(iph->protocol);
|
||||
if (poff >= 0 &&
|
||||
|
@ -163,7 +163,7 @@ static u32 flow_get_proto_dst(struct sk_buff *skb)
|
|||
if (!pskb_network_may_pull(skb, sizeof(*iph)))
|
||||
break;
|
||||
iph = ip_hdr(skb);
|
||||
if (iph->frag_off & htons(IP_MF|IP_OFFSET))
|
||||
if (iph->frag_off & htons(IP_MF | IP_OFFSET))
|
||||
break;
|
||||
poff = proto_ports_offset(iph->protocol);
|
||||
if (poff >= 0 &&
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue