@@ -34,6 +34,7 @@ impl <T> ::std::hash::Hash for __BindgenUnionField<T> {
34
34
impl < T > :: std:: cmp:: PartialEq for __BindgenUnionField < T > {
35
35
fn eq ( & self , _other : & __BindgenUnionField < T > ) -> bool { true }
36
36
}
37
+ impl < T > :: std:: cmp:: Eq for __BindgenUnionField < T > { }
37
38
pub const ETH_MQ_RX_RSS_FLAG : :: std:: os:: raw:: c_uint = 1 ;
38
39
pub const ETH_MQ_RX_DCB_FLAG : :: std:: os:: raw:: c_uint = 2 ;
39
40
pub const ETH_MQ_RX_VMDQ_FLAG : :: std:: os:: raw:: c_uint = 4 ;
@@ -82,7 +83,7 @@ pub enum rte_eth_rx_mq_mode {
82
83
}
83
84
/// A structure used to configure the RX features of an Ethernet port.
84
85
#[ repr( C ) ]
85
- #[ derive( Debug , Copy , Hash , PartialEq ) ]
86
+ #[ derive( Debug , Copy , Hash , PartialEq , Eq ) ]
86
87
pub struct rte_eth_rxmode {
87
88
/// The multi-queue packet distribution mode to be used, e.g. RSS.
88
89
pub mq_mode : rte_eth_rx_mq_mode ,
@@ -500,7 +501,7 @@ pub enum rte_eth_tx_mq_mode {
500
501
}
501
502
/// A structure used to configure the TX features of an Ethernet port.
502
503
#[ repr( C ) ]
503
- #[ derive( Debug , Copy , Hash , PartialEq ) ]
504
+ #[ derive( Debug , Copy , Hash , PartialEq , Eq ) ]
504
505
pub struct rte_eth_txmode {
505
506
/// < TX multi-queues mode.
506
507
pub mq_mode : rte_eth_tx_mq_mode ,
@@ -671,7 +672,7 @@ impl rte_eth_txmode {
671
672
/// types of IPv4/IPv6 packets to which the RSS hashing must be applied.
672
673
/// Supplying an *rss_hf* equal to zero disables the RSS feature.
673
674
#[ repr( C ) ]
674
- #[ derive( Debug , Copy , Hash , PartialEq ) ]
675
+ #[ derive( Debug , Copy , Hash , PartialEq , Eq ) ]
675
676
pub struct rte_eth_rss_conf {
676
677
/// < If not NULL, 40-byte hash key.
677
678
pub rss_key : * mut u8 ,
@@ -748,7 +749,7 @@ pub struct rte_eth_vmdq_dcb_conf {
748
749
pub dcb_tc : [ u8 ; 8usize ] ,
749
750
}
750
751
#[ repr( C ) ]
751
- #[ derive( Debug , Default , Copy , Hash , PartialEq ) ]
752
+ #[ derive( Debug , Default , Copy , Hash , PartialEq , Eq ) ]
752
753
pub struct rte_eth_vmdq_dcb_conf__bindgen_ty_1 {
753
754
/// < The vlan id of the received frame
754
755
pub vlan_id : u16 ,
@@ -828,7 +829,7 @@ impl Default for rte_eth_vmdq_dcb_conf {
828
829
fn default ( ) -> Self { unsafe { :: std:: mem:: zeroed ( ) } }
829
830
}
830
831
#[ repr( C ) ]
831
- #[ derive( Debug , Copy , Hash , PartialEq ) ]
832
+ #[ derive( Debug , Copy , Hash , PartialEq , Eq ) ]
832
833
pub struct rte_eth_dcb_rx_conf {
833
834
/// < Possible DCB TCs, 4 or 8 TCs
834
835
pub nb_tcs : rte_eth_nb_tcs ,
@@ -860,7 +861,7 @@ impl Default for rte_eth_dcb_rx_conf {
860
861
fn default ( ) -> Self { unsafe { :: std:: mem:: zeroed ( ) } }
861
862
}
862
863
#[ repr( C ) ]
863
- #[ derive( Debug , Copy , Hash , PartialEq ) ]
864
+ #[ derive( Debug , Copy , Hash , PartialEq , Eq ) ]
864
865
pub struct rte_eth_vmdq_dcb_tx_conf {
865
866
/// < With DCB, 16 or 32 pools.
866
867
pub nb_queue_pools : rte_eth_nb_pools ,
@@ -894,7 +895,7 @@ impl Default for rte_eth_vmdq_dcb_tx_conf {
894
895
fn default ( ) -> Self { unsafe { :: std:: mem:: zeroed ( ) } }
895
896
}
896
897
#[ repr( C ) ]
897
- #[ derive( Debug , Copy , Hash , PartialEq ) ]
898
+ #[ derive( Debug , Copy , Hash , PartialEq , Eq ) ]
898
899
pub struct rte_eth_dcb_tx_conf {
899
900
/// < Possible DCB TCs, 4 or 8 TCs.
900
901
pub nb_tcs : rte_eth_nb_tcs ,
@@ -926,7 +927,7 @@ impl Default for rte_eth_dcb_tx_conf {
926
927
fn default ( ) -> Self { unsafe { :: std:: mem:: zeroed ( ) } }
927
928
}
928
929
#[ repr( C ) ]
929
- #[ derive( Debug , Copy , Hash , PartialEq ) ]
930
+ #[ derive( Debug , Copy , Hash , PartialEq , Eq ) ]
930
931
pub struct rte_eth_vmdq_tx_conf {
931
932
/// < VMDq mode, 64 pools.
932
933
pub nb_queue_pools : rte_eth_nb_pools ,
@@ -969,7 +970,7 @@ pub struct rte_eth_vmdq_rx_conf {
969
970
pub pool_map : [ rte_eth_vmdq_rx_conf__bindgen_ty_1 ; 64usize ] ,
970
971
}
971
972
#[ repr( C ) ]
972
- #[ derive( Debug , Default , Copy , Hash , PartialEq ) ]
973
+ #[ derive( Debug , Default , Copy , Hash , PartialEq , Eq ) ]
973
974
pub struct rte_eth_vmdq_rx_conf__bindgen_ty_1 {
974
975
/// < The vlan id of the received frame
975
976
pub vlan_id : u16 ,
@@ -1082,7 +1083,7 @@ pub enum rte_fdir_status_mode {
1082
1083
}
1083
1084
/// A structure used to define the input for IPV4 flow
1084
1085
#[ repr( C ) ]
1085
- #[ derive( Debug , Default , Copy , Hash , PartialEq ) ]
1086
+ #[ derive( Debug , Default , Copy , Hash , PartialEq , Eq ) ]
1086
1087
pub struct rte_eth_ipv4_flow {
1087
1088
/// < IPv4 source address in big endian.
1088
1089
pub src_ip : u32 ,
@@ -1132,7 +1133,7 @@ impl Clone for rte_eth_ipv4_flow {
1132
1133
}
1133
1134
/// A structure used to define the input for IPV6 flow
1134
1135
#[ repr( C ) ]
1135
- #[ derive( Debug , Default , Copy , Hash , PartialEq ) ]
1136
+ #[ derive( Debug , Default , Copy , Hash , PartialEq , Eq ) ]
1136
1137
pub struct rte_eth_ipv6_flow {
1137
1138
/// < IPv6 source address in big endian.
1138
1139
pub src_ip : [ u32 ; 4usize ] ,
@@ -1183,7 +1184,7 @@ impl Clone for rte_eth_ipv6_flow {
1183
1184
/// A structure used to configure FDIR masks that are used by the device
1184
1185
/// to match the various fields of RX packet headers.
1185
1186
#[ repr( C ) ]
1186
- #[ derive( Debug , Default , Copy , Hash , PartialEq ) ]
1187
+ #[ derive( Debug , Default , Copy , Hash , PartialEq , Eq ) ]
1187
1188
pub struct rte_eth_fdir_masks {
1188
1189
/// < Bit mask for vlan_tci in big endian
1189
1190
pub vlan_tci_mask : u16 ,
@@ -1269,7 +1270,7 @@ pub enum rte_eth_payload_type {
1269
1270
/// A structure used to select bytes extracted from the protocol layers to
1270
1271
/// flexible payload for filter
1271
1272
#[ repr( C ) ]
1272
- #[ derive( Debug , Copy , Hash , PartialEq ) ]
1273
+ #[ derive( Debug , Copy , Hash , PartialEq , Eq ) ]
1273
1274
pub struct rte_eth_flex_payload_cfg {
1274
1275
/// < Payload type
1275
1276
pub type_ : rte_eth_payload_type ,
@@ -1304,7 +1305,7 @@ impl Default for rte_eth_flex_payload_cfg {
1304
1305
/// A structure used to define FDIR masks for flexible payload
1305
1306
/// for each flow type
1306
1307
#[ repr( C ) ]
1307
- #[ derive( Debug , Default , Copy , Hash , PartialEq ) ]
1308
+ #[ derive( Debug , Default , Copy , Hash , PartialEq , Eq ) ]
1308
1309
pub struct rte_eth_fdir_flex_mask {
1309
1310
pub flow_type : u16 ,
1310
1311
pub mask : [ u8 ; 16usize ] ,
@@ -1334,7 +1335,7 @@ impl Clone for rte_eth_fdir_flex_mask {
1334
1335
/// A structure used to define all flexible payload related setting
1335
1336
/// include flex payload and flex mask
1336
1337
#[ repr( C ) ]
1337
- #[ derive( Debug , Copy , Hash , PartialEq ) ]
1338
+ #[ derive( Debug , Copy , Hash , PartialEq , Eq ) ]
1338
1339
pub struct rte_eth_fdir_flex_conf {
1339
1340
/// < The number of following payload cfg
1340
1341
pub nb_payloads : u16 ,
@@ -1383,7 +1384,7 @@ impl Default for rte_eth_fdir_flex_conf {
1383
1384
///
1384
1385
/// If mode is RTE_FDIR_DISABLE, the pballoc value is ignored.
1385
1386
#[ repr( C ) ]
1386
- #[ derive( Debug , Copy , Hash , PartialEq ) ]
1387
+ #[ derive( Debug , Copy , Hash , PartialEq , Eq ) ]
1387
1388
pub struct rte_fdir_conf {
1388
1389
/// < Flow Director mode.
1389
1390
pub mode : rte_fdir_mode ,
@@ -1441,7 +1442,7 @@ impl Default for rte_fdir_conf {
1441
1442
}
1442
1443
/// A structure used to enable/disable specific device interrupts.
1443
1444
#[ repr( C ) ]
1444
- #[ derive( Debug , Default , Copy , Hash , PartialEq ) ]
1445
+ #[ derive( Debug , Default , Copy , Hash , PartialEq , Eq ) ]
1445
1446
pub struct rte_intr_conf {
1446
1447
/// enable/disable lsc interrupt. 0 (default) - disable, 1 enable
1447
1448
pub lsc : u16 ,
@@ -1554,7 +1555,7 @@ impl Default for rte_eth_conf__bindgen_ty_1 {
1554
1555
fn default ( ) -> Self { unsafe { :: std:: mem:: zeroed ( ) } }
1555
1556
}
1556
1557
#[ repr( C ) ]
1557
- #[ derive( Debug , Default , Copy , Hash , PartialEq ) ]
1558
+ #[ derive( Debug , Default , Copy , Hash , PartialEq , Eq ) ]
1558
1559
pub struct rte_eth_conf__bindgen_ty_2 {
1559
1560
pub vmdq_dcb_tx_conf : __BindgenUnionField < rte_eth_vmdq_dcb_tx_conf > ,
1560
1561
pub dcb_tx_conf : __BindgenUnionField < rte_eth_dcb_tx_conf > ,
0 commit comments