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