]> git.baikalelectronics.ru Git - kernel.git/commit
flow_dissector: factor out the ports extraction in skb_flow_get_ports
authorNikolay Aleksandrov <nikolay@redhat.com>
Wed, 2 Oct 2013 11:39:24 +0000 (13:39 +0200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 3 Oct 2013 19:36:37 +0000 (15:36 -0400)
commitbffaee1a7169d1eb985c318d51acf1bc2627d2fa
tree4313ee038c1557c1aa36ec594a0aa20e545ca2df
parenta9a0aa2868c2909617c63ba78b80d3cb00deb821
flow_dissector: factor out the ports extraction in skb_flow_get_ports

Factor out the code that extracts the ports from skb_flow_dissect and
add a new function skb_flow_get_ports which can be re-used.

Suggested-by: Veaceslav Falico <vfalico@redhat.com>
Signed-off-by: Nikolay Aleksandrov <nikolay@redhat.com>
Acked-by: Eric Dumazet <edumazet@google.com>
Reviewed-by: Veaceslav Falico <vfalico@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/flow_keys.h
net/core/flow_dissector.c