OSDN Git Service

Merge branch 'fib-rule-selftest'
authorDavid S. Miller <davem@davemloft.net>
Wed, 23 May 2018 19:14:30 +0000 (15:14 -0400)
committerDavid S. Miller <davem@davemloft.net>
Wed, 23 May 2018 19:14:30 +0000 (15:14 -0400)
commit8fcb0972b1c9c497db6085e671d77ef7be6facb5
tree77f7967d170900bd5a53c153f724d63d45d37386
parent273de02ae7d828d72d66eb5fce181e1f3f96d0cd
parent65b2b4939a643861ed1660eccd6dc0b5d8c78afa
Merge branch 'fib-rule-selftest'

Roopa Prabhu says:

====================
fib rule selftest

This series adds a new test to test fib rules.
ip route get is used to test fib rule matches.
This series also extends ip route get to match on
sport and dport to test recent support of sport
and dport fib rule match.

v2 - address ido's commemt to make sport dport
ip route get to work correctly for input route
get. I don't support ip route get on ip-proto match yet.
ip route get creates a udp packet and i have left
it at that. We could extend ip route get to support
a few ip proto matches in followup patches.

v3 - Support ip_proto (only tcp and udp) match in getroute.
dropped printing of new match attrs in ip route get,
because ipv6 does not print it. And ipv6 currrently shares
the dump api with ipv6 notify and its better to not add them
to the notify api. dropped it to keep the api consistent between
ipv4 and ipv6 (though uid is already printed in the ipv4 case).
If we need it, both ipv4 and ipv6 can be enhanced to provide
a separate get api. Moved skb creation for ipv4 to a separate func.

v4 - drop separate skb for netlink and fix concerns around rcu and netlink
     reply (as pointed out by DaveM). I now try to reset the skb after the route
     lookup and before the netlink send (testing shows this is ok. More eyes and
     any feedback here will be helpful)

v5 - dropped RTA_TABLE ipv4_rtm_policy update from this series and posted
     it separately for net (feedback from Eric)
====================

Signed-off-by: David S. Miller <davem@davemloft.net>