On Sat, 2018-09-29 at 11:44 -0700, David Miller wrote: > From: Yifeng Sun <pkusunyif...@gmail.com> > Date: Wed, 26 Sep 2018 11:40:14 -0700 > > > This patch fixes the bug that all datapath and vport ops are returning > > wrong values (OVS_FLOW_CMD_NEW or OVS_DP_CMD_NEW) in their replies. > > > > Signed-off-by: Yifeng Sun <pkusunyif...@gmail.com> > > Applied.
Not directly relating to ovs, but as a similar existing behaviour, we do have somewhat odd response for CTRL_CMD_GETFAMILY. I mean this part: diff --git a/net/netlink/genetlink.c b/net/netlink/genetlink.c index 25eeb6d2a75a..17428d5d1434 100644 --- a/net/netlink/genetlink.c +++ b/net/netlink/genetlink.c @@ -789,7 +789,7 @@ static int ctrl_dumpfamily(struct sk_buff *skb, struct netlink_callback *cb) if (ctrl_fill_info(rt, NETLINK_CB(cb->skb).portid, cb->nlh->nlmsg_seq, NLM_F_MULTI, - skb, CTRL_CMD_NEWFAMILY) < 0) { + skb, CTRL_CMD_GETFAMILY) < 0) { n--; break; } @@ -886,7 +886,7 @@ static int ctrl_getfamily(struct sk_buff *skb, struct genl_info *info) } msg = ctrl_build_family_msg(res, info->snd_portid, info->snd_seq, - CTRL_CMD_NEWFAMILY); + CTRL_CMD_GETFAMILY); if (IS_ERR(msg)) return PTR_ERR(msg); David, do you think we should retain this existing bahaviour, since this would be a relatively huge breaking change for userland apps?