Page MenuHomeFreeBSD

D59790.id187033.diff
No OneTemporary

D59790.id187033.diff

Index: sys/dev/iavf/iavf_iflib.h
===================================================================
--- sys/dev/iavf/iavf_iflib.h
+++ sys/dev/iavf/iavf_iflib.h
@@ -403,7 +403,6 @@
/* Function prototypes */
void iavf_init_tx_ring(struct iavf_vsi *vsi, struct iavf_tx_queue *que);
-void iavf_get_default_rss_key(u32 *);
const char * iavf_vc_stat_str(struct iavf_hw *hw,
enum virtchnl_status_code stat_err);
void iavf_init_tx_rsqs(struct iavf_vsi *vsi);
Index: sys/dev/iavf/iavf_lib.h
===================================================================
--- sys/dev/iavf/iavf_lib.h
+++ sys/dev/iavf/iavf_lib.h
@@ -433,7 +433,6 @@
void iavf_update_link_status(struct iavf_sc *);
bool iavf_driver_is_detaching(struct iavf_sc *sc);
void iavf_msec_pause(int msecs);
-void iavf_get_default_rss_key(u32 *key);
int iavf_allocate_pci_resources_common(struct iavf_sc *sc);
bool iavf_reset_is_complete(struct iavf_hw *hw);
int iavf_reset_complete(struct iavf_hw *hw);
Index: sys/dev/iavf/iavf_lib.c
===================================================================
--- sys/dev/iavf/iavf_lib.c
+++ sys/dev/iavf/iavf_lib.c
@@ -57,29 +57,6 @@
pause("iavf_msec_pause", MSEC_2_TICKS(msecs));
}
-/**
- * iavf_get_default_rss_key - Get the default RSS key for this driver
- * @key: output parameter to store the key in
- *
- * Copies the driver's default RSS key into the provided key variable.
- *
- * @pre assumes that key is not NULL and has at least IAVF_RSS_KEY_SIZE
- * storage space.
- */
-void
-iavf_get_default_rss_key(u32 *key)
-{
- MPASS(key != NULL);
-
- u32 rss_seed[IAVF_RSS_KEY_SIZE_REG] = {0x41b01687,
- 0x183cfd8c, 0xce880440, 0x580cbc3c,
- 0x35897377, 0x328b25e1, 0x4fa98922,
- 0xb7d90c14, 0xd5bad70d, 0xcd15a2c1,
- 0x0, 0x0, 0x0};
-
- bcopy(rss_seed, key, IAVF_RSS_KEY_SIZE);
-}
-
/**
* iavf_allocate_pci_resources_common - Allocate PCI resources
* @sc: the private device softc pointer
Index: sys/dev/iavf/iavf_vc_common.c
===================================================================
--- sys/dev/iavf/iavf_vc_common.c
+++ sys/dev/iavf/iavf_vc_common.c
@@ -802,12 +802,8 @@
int msg_len, key_length;
u32 rss_seed[IAVF_RSS_KEY_SIZE_REG] = {0};
-#ifdef RSS
/* Fetch the configured RSS key */
rss_getkey((uint8_t *) &rss_seed);
-#else
- iavf_get_default_rss_key(rss_seed);
-#endif
/* Send the fetched key */
key_length = sc->vf_res->rss_key_size;

File Metadata

Mime Type
text/plain
Expires
Sat, Sep 19, 10:36 PM (56 m, 14 s)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
39243523
Default Alt Text
D59790.id187033.diff (2 KB)

Event Timeline