git.droids-corp.org
/
dpdk.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
net/ice/base: refactor interface for flash read
[dpdk.git]
/
drivers
/
net
/
ice
/
base
/
ice_dcb.h
diff --git
a/drivers/net/ice/base/ice_dcb.h
b/drivers/net/ice/base/ice_dcb.h
index
83b6e4d
..
8f0e09d
100644
(file)
--- a/
drivers/net/ice/base/ice_dcb.h
+++ b/
drivers/net/ice/base/ice_dcb.h
@@
-103,17
+103,11
@@
#define ICE_IEEE_APP_TLV_LEN 11
#pragma pack(1)
#define ICE_IEEE_APP_TLV_LEN 11
#pragma pack(1)
-/* IEEE 802.1AB LLDP TLV structure */
-struct ice_lldp_generic_tlv {
- __be16 typelen;
- u8 tlvinfo[1];
-};
-
/* IEEE 802.1AB LLDP Organization specific TLV */
struct ice_lldp_org_tlv {
__be16 typelen;
__be32 ouisubtype;
/* IEEE 802.1AB LLDP Organization specific TLV */
struct ice_lldp_org_tlv {
__be16 typelen;
__be32 ouisubtype;
- u8 tlvinfo[
1
];
+ u8 tlvinfo[
STRUCT_HACK_VAR_LEN
];
};
#pragma pack()
};
#pragma pack()
@@
-136,7
+130,7
@@
struct ice_cee_feat_tlv {
#define ICE_CEE_FEAT_TLV_WILLING_M 0x40
#define ICE_CEE_FEAT_TLV_ERR_M 0x20
u8 subtype;
#define ICE_CEE_FEAT_TLV_WILLING_M 0x40
#define ICE_CEE_FEAT_TLV_ERR_M 0x20
u8 subtype;
- u8 tlvinfo[
1
];
+ u8 tlvinfo[
STRUCT_HACK_VAR_LEN
];
};
#pragma pack(1)
};
#pragma pack(1)