]> git.baikalelectronics.ru Git - kernel.git/commit
net: ipv6: Remove redundant RTA_OIF in multipath routes
authorDavid Ahern <dsa@cumulusnetworks.com>
Mon, 6 Mar 2017 23:57:31 +0000 (15:57 -0800)
committerDavid S. Miller <davem@davemloft.net>
Thu, 9 Mar 2017 21:04:48 +0000 (13:04 -0800)
commit1b889ee9b2a4c10592ffcff0a0f12d137702b1d0
tree229cc3fef63f1be681fb151a72a912869163fbb8
parent3f6e8968f782c45e5012541d4d1c82ac71f35aa1
net: ipv6: Remove redundant RTA_OIF in multipath routes

Dinesh reported that RTA_MULTIPATH nexthops are 8-bytes larger with IPv6
than IPv4. The recent refactoring for multipath support in netlink
messages does discriminate between non-multipath which needs the OIF
and multipath which adds a rtnexthop struct for each hop making the
RTA_OIF attribute redundant. Resolve by adding a flag to the info
function to skip the oif for multipath.

Fixes: 0c899d8cef2e ("net: ipv6: Add support to dump multipath routes
       via RTA_MULTIPATH attribute")
Reported-by: Dinesh Dutt <ddutt@cumulusnetworks.com>
Signed-off-by: David Ahern <dsa@cumulusnetworks.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv6/route.c