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/mlx4: separate Tx segment cases
[dpdk.git]
/
drivers
/
net
/
sfc
/
sfc.h
diff --git
a/drivers/net/sfc/sfc.h
b/drivers/net/sfc/sfc.h
index
772a713
..
7f11bf2
100644
(file)
--- a/
drivers/net/sfc/sfc.h
+++ b/
drivers/net/sfc/sfc.h
@@
-34,6
+34,8
@@
#include <stdbool.h>
#include <stdbool.h>
+#include <rte_pci.h>
+#include <rte_bus_pci.h>
#include <rte_ethdev.h>
#include <rte_kvargs.h>
#include <rte_spinlock.h>
#include <rte_ethdev.h>
#include <rte_kvargs.h>
#include <rte_spinlock.h>
@@
-47,8
+49,6
@@
extern "C" {
#endif
#if EFSYS_OPT_RX_SCALE
#endif
#if EFSYS_OPT_RX_SCALE
-/** RSS key length (bytes) */
-#define SFC_RSS_KEY_SIZE 40
/** RSS hash offloads mask */
#define SFC_RSS_OFFLOADS (ETH_RSS_IP | ETH_RSS_TCP)
#endif
/** RSS hash offloads mask */
#define SFC_RSS_OFFLOADS (ETH_RSS_IP | ETH_RSS_TCP)
#endif
@@
-150,6
+150,11
@@
struct sfc_port {
boolean_t flow_ctrl_autoneg;
size_t pdu;
boolean_t flow_ctrl_autoneg;
size_t pdu;
+ /*
+ * Flow API isolated mode overrides promisc and allmulti settings;
+ * they won't be applied if isolated mode is active
+ */
+ boolean_t isolated;
boolean_t promisc;
boolean_t allmulti;
boolean_t promisc;
boolean_t allmulti;
@@
-159,6
+164,7
@@
struct sfc_port {
rte_spinlock_t mac_stats_lock;
uint64_t *mac_stats_buf;
rte_spinlock_t mac_stats_lock;
uint64_t *mac_stats_buf;
+ unsigned int mac_stats_nb_supported;
efsys_mem_t mac_stats_dma_mem;
boolean_t mac_stats_reset_pending;
uint16_t mac_stats_update_period_ms;
efsys_mem_t mac_stats_dma_mem;
boolean_t mac_stats_reset_pending;
uint16_t mac_stats_update_period_ms;
@@
-218,14
+224,25
@@
struct sfc_adapter {
unsigned int rss_channels;
#if EFSYS_OPT_RX_SCALE
unsigned int rss_channels;
#if EFSYS_OPT_RX_SCALE
- efx_rx_scale_
support_t
rss_support;
+ efx_rx_scale_
context_type_t
rss_support;
efx_rx_hash_support_t hash_support;
efx_rx_hash_type_t rss_hash_types;
unsigned int rss_tbl[EFX_RSS_TBL_SIZE];
efx_rx_hash_support_t hash_support;
efx_rx_hash_type_t rss_hash_types;
unsigned int rss_tbl[EFX_RSS_TBL_SIZE];
- uint8_t rss_key[
SFC
_RSS_KEY_SIZE];
+ uint8_t rss_key[
EFX
_RSS_KEY_SIZE];
#endif
#endif
+ /*
+ * Shared memory copy of the Rx datapath name to be used by
+ * the secondary process to find Rx datapath to be used.
+ */
+ char *dp_rx_name;
const struct sfc_dp_rx *dp_rx;
const struct sfc_dp_rx *dp_rx;
+
+ /*
+ * Shared memory copy of the Tx datapath name to be used by
+ * the secondary process to find Rx datapath to be used.
+ */
+ char *dp_tx_name;
const struct sfc_dp_tx *dp_tx;
};
const struct sfc_dp_tx *dp_tx;
};