summaryrefslogtreecommitdiff
path: root/staging/lookupdev.c
diff options
context:
space:
mode:
authorTobias Klauser <tklauser@distanz.ch>2013-06-09 12:08:22 +0200
committerTobias Klauser <tklauser@distanz.ch>2013-06-09 12:08:22 +0200
commit2f74f6e53de49b981edf3ca337c897dec297c1aa (patch)
tree6d558ab30a620bce2b0d35b72440988fa9cc83e4 /staging/lookupdev.c
parent586daa5c53e99e0327dec27dfdaf6f5436d0c92c (diff)
ifpps: Don't diff tx_bytes twice
It's sufficient to calculate the difference of tx_bytes only once. Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
Diffstat (limited to 'staging/lookupdev.c')
0 files changed, 0 insertions, 0 deletions
12:59:25.096426 IP 10.0.0.3 > 10.2.2.2: ICMP echo request, id 2113, seq 1, length 64 Now the source address comes from vrf0. The ipv4 function for selecting source address takes a const argument. Removing the const requires touching a lot of places, so instead l3mdev_master_ifindex_rcu is changed to take a const argument and then do the typecast to non-const as required by netdev_master_upper_dev_get_rcu. This is similar to what l3mdev_fib_table_rcu does. IPv6 for unnumbered interfaces appears to be selecting the addresses properly. Cc: David Lamparter <david@opensourcerouting.org> Signed-off-by: David Ahern <dsa@cumulusnetworks.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include')