Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 266452
b: refs/heads/master
c: 6bd0e1c
h: refs/heads/master
v: v3
  • Loading branch information
John Fastabend authored and David S. Miller committed Oct 6, 2011
1 parent 8d1f66c commit 8c2fafe
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: e290ed81307ca7d92675f0d9c683add693c2f377
refs/heads/master: 6bd0e1cb10b6d14dda4a8806d0a2f4f0bbf01931
1 change: 1 addition & 0 deletions trunk/include/net/dcbnl.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ struct dcb_app_type {
int ifindex;
struct dcb_app app;
struct list_head list;
u8 dcbx;
};

int dcb_setapp(struct net_device *, struct dcb_app *);
Expand Down
6 changes: 6 additions & 0 deletions trunk/net/dcb/dcbnl.c
Original file line number Diff line number Diff line change
Expand Up @@ -2075,6 +2075,8 @@ int dcb_setapp(struct net_device *dev, struct dcb_app *new)

event.ifindex = dev->ifindex;
memcpy(&event.app, new, sizeof(event.app));
if (dev->dcbnl_ops->getdcbx)
event.dcbx = dev->dcbnl_ops->getdcbx(dev);

spin_lock(&dcb_lock);
/* Search for existing match and replace */
Expand Down Expand Up @@ -2152,6 +2154,8 @@ int dcb_ieee_setapp(struct net_device *dev, struct dcb_app *new)

event.ifindex = dev->ifindex;
memcpy(&event.app, new, sizeof(event.app));
if (dev->dcbnl_ops->getdcbx)
event.dcbx = dev->dcbnl_ops->getdcbx(dev);

spin_lock(&dcb_lock);
/* Search for existing match and abort if found */
Expand Down Expand Up @@ -2196,6 +2200,8 @@ int dcb_ieee_delapp(struct net_device *dev, struct dcb_app *del)

event.ifindex = dev->ifindex;
memcpy(&event.app, del, sizeof(event.app));
if (dev->dcbnl_ops->getdcbx)
event.dcbx = dev->dcbnl_ops->getdcbx(dev);

spin_lock(&dcb_lock);
/* Search for existing match and remove it. */
Expand Down

0 comments on commit 8c2fafe

Please sign in to comment.