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)
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>

No differences found