diff options
author | Shmulik Ravid <shmulikr@broadcom.com> | 2011-02-28 15:19:55 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2011-02-28 15:19:55 -0500 |
commit | 985076720187af7ac0c2de4dfe912acba9b4f586 (patch) | |
tree | 1b7f36339144742cf596776e4a88fb1b491f34c7 /drivers/net/bnx2x/bnx2x_dcb.h | |
parent | ff938e43d39e926de74b32a3656c190f979ab642 (diff) |
bnx2x: use dcb_setapp to manage negotiated application tlvs
With this patch the bnx2x uses the generic dcbnl application tlv list
instead of implementing its own get-app handler. When the driver is
alerted to a change in the DCB negotiated parameters, it calls
dcb_setapp to update the dcbnl application tlvs list making it available
to user mode applications and registered notifiers.
Signed-off-by: Shmulik Ravid <shmulikr@broadcom.com>
Signed-off-by: Eilon Greenstein <eilong@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/bnx2x/bnx2x_dcb.h')
-rw-r--r-- | drivers/net/bnx2x/bnx2x_dcb.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/net/bnx2x/bnx2x_dcb.h b/drivers/net/bnx2x/bnx2x_dcb.h index f650f98e4092..71b8eda43bd0 100644 --- a/drivers/net/bnx2x/bnx2x_dcb.h +++ b/drivers/net/bnx2x/bnx2x_dcb.h | |||
@@ -189,8 +189,9 @@ enum { | |||
189 | void bnx2x_dcbx_set_params(struct bnx2x *bp, u32 state); | 189 | void bnx2x_dcbx_set_params(struct bnx2x *bp, u32 state); |
190 | 190 | ||
191 | /* DCB netlink */ | 191 | /* DCB netlink */ |
192 | #ifdef BCM_DCB | 192 | #ifdef BCM_DCBNL |
193 | extern const struct dcbnl_rtnl_ops bnx2x_dcbnl_ops; | 193 | extern const struct dcbnl_rtnl_ops bnx2x_dcbnl_ops; |
194 | #endif /* BCM_DCB */ | 194 | int bnx2x_dcbnl_update_applist(struct bnx2x *bp, bool delall); |
195 | #endif /* BCM_DCBNL */ | ||
195 | 196 | ||
196 | #endif /* BNX2X_DCB_H */ | 197 | #endif /* BNX2X_DCB_H */ |