|
|
Re: [net-next PATCH] net: dcb: add CEE notify calls |
> Signed-off-by: John Fastabend <john.r.fastabend@xxxxxxxxx> > --- > > net/dcb/dcbnl.c | 2 ++ > 1 files changed, 2 insertions(+), 0 deletions(-) > > diff --git a/net/dcb/dcbnl.c b/net/dcb/dcbnl.c > index 8dfa1da..656c7c7 100644 > --- a/net/dcb/dcbnl.c > +++ b/net/dcb/dcbnl.c > @@ -704,6 +704,7 @@ static int dcbnl_setapp(struct net_device *netdev, struct nlattr **tb, > > ret = dcbnl_reply(err, RTM_SETDCB, DCB_CMD_SAPP, DCB_ATTR_APP, > pid, seq, flags); > + dcbnl_cee_notify(netdev, RTM_SETDCB, DCB_CMD_SAPP, seq, 0); > out: > return ret; > } > @@ -936,6 +937,7 @@ static int dcbnl_setall(struct net_device *netdev, struct nlattr **tb, > > ret = dcbnl_reply(netdev->dcbnl_ops->setall(netdev), RTM_SETDCB, > DCB_CMD_SET_ALL, DCB_ATTR_SET_ALL, pid, seq, flags); > + dcbnl_cee_notify(netdev, RTM_SETDCB, DCB_CMD_SET_ALL, seq, 0); > > return ret; > } > In case of a FW DCBx agent these notification could be a bit confusing. In this case, the dcbnl_setxxx operations are used to set the initial negotiation parameters. dcbnl_setall triggers the negotiation and some time after that the FW DCBx agent driver should send a notification with the newly negotiated values. The notifications sent form within the set operations will return the current negotiated values which may very soon change. If we want to keep the user mode code simple and unified maybe we should send these notifications only if the DCBx agent is host based. Shmulik -- To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html
[Linux Kernel Discussion] [Ethernet Bridging] [Linux Wireless Networking] [Linux Bluetooth Networking] [Linux Networking Users] [VLAN] [Git] [IETF Annouce] [Linux Assembly] [Security] [Bugtraq] [Photo] [Singles Social Networking] [Yosemite Information] [MIPS Linux] [ARM Linux Kernel] [ARM Linux] [Linux Virtualization] [Linux Security] [Linux IDE] [Linux RAID] [Linux SCSI] [Free Dating]
![]() |
![]() |