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)
commit357afe9c46c951c34769e39cabdf8d1637e2eecc
tree4313ee038c1557c1aa36ec594a0aa20e545ca2df
parent5080546682bae3d32734b18e281091684f0ebbe4
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