Skip to contentSkip to conversation

rtnetlink: Use nlmsg type RTM_NEWNEIGH from dflt fdb dump

PATCH Applied John Fastabend 2 participants 2 messages Nov 2, 2012 – Nov 3, 2012

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 rtnetlink: Use nlmsg type RTM_NEWNEIGH from dflt fdb dump

Change the dflt fdb dump handler to use RTM_NEWNEIGH to be compatible with bridge dump routines.

The dump reply from the network driver handlers should match the reply from bridge handler. The fact they were not in the ixgbe case was effectively a bug. This patch resolves it.

Applications that were not checking the nlmsg type will continue to work. And now applications that do check the type will work as expected.

---

 net/core/rtnetlink.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
net/core/rtnetlink.c +2 -1
index 76d4c2c..fad649a 100644
@@ -2192,7 +2192,8 @@ static int nlmsg_populate_fdb(struct sk_buff *skb,
 			goto skip;
 
 		err = nlmsg_populate_fdb_fill(skb, dev, ha->addr,
-					      portid, seq, 0, NTF_SELF);
+					      portid, seq,
+					      RTM_NEWNEIGH, NTF_SELF);
 		if (err < 0)
 			return err;
 skip:
maintainer Applied
#1 lore raw

From: John Fastabend <[email protected]>
Date: Thu, 01 Nov 2012 19:23:10 -0700

Quoted 8 lines

Change the dflt fdb dump handler to use RTM_NEWNEIGH to be compatible with bridge dump routines.

The dump reply from the network driver handlers should match the reply from bridge handler. The fact they were not in the ixgbe case was effectively a bug. This patch resolves it.

Quoted 5 lines

Applications that were not checking the nlmsg type will continue to work. And now applications that do check the type will work as expected.

Applied.