mirror of
https://github.com/freebsd/freebsd-src.git
synced 2026-10-28 11:25:21 +01:00
ixl: Initialize the extended RSS key
Zero the complete 52-byte RSS key buffer before fetching the common 40-byte key. Both the X722 AdminQ path and the register path consume all 52 bytes; the trailing extended-key bytes must not come from uninitialized stack storage. This matches the zero padding already used by iavf and ice. Remove the unused driver-default key helper and its declaration. Keep the standard key, hash selections, and indirection policy unchanged. Reviewed by: gallatin MFC after: 2 weeks Sponsored by: BBOX.io Differential Revision: https://reviews.freebsd.org/D59791
This commit is contained in:
1 parent
7f1e93b1e5
commit
0f7bdeadaf
3 files changed
+1
-19
No files matched your search
@@ -516,7 +516,6 @@ extern const uint8_t ixl_bcast_addr[ETHER_ADDR_LEN];
|
||||
/* Common function prototypes between PF/VF driver */
|
||||
void ixl_debug_core(device_t dev, u32 enabled_mask, u32 mask, char *fmt, ...);
|
||||
void ixl_init_tx_ring(struct ixl_vsi *vsi, struct ixl_tx_queue *que);
|
||||
void ixl_get_default_rss_key(u32 *);
|
||||
const char * i40e_vc_stat_str(struct i40e_hw *hw,
|
||||
enum virtchnl_status_code stat_err);
|
||||
void ixl_init_tx_rsqs(struct ixl_vsi *vsi);
|
||||
|
||||
@@ -1099,7 +1099,7 @@ ixl_set_rss_key(struct ixl_pf *pf)
|
||||
struct i40e_hw *hw = &pf->hw;
|
||||
struct ixl_vsi *vsi = &pf->vsi;
|
||||
device_t dev = pf->dev;
|
||||
u32 rss_seed[IXL_RSS_KEY_SIZE_REG];
|
||||
u32 rss_seed[IXL_RSS_KEY_SIZE_REG] = {0};
|
||||
enum i40e_status_code status;
|
||||
|
||||
/* Fetch the configured RSS key */
|
||||
|
||||
@@ -86,23 +86,6 @@ struct if_txrx ixl_txrx_dwb = {
|
||||
NULL
|
||||
};
|
||||
|
||||
/*
|
||||
* @key key is saved into this parameter
|
||||
*/
|
||||
void
|
||||
ixl_get_default_rss_key(u32 *key)
|
||||
{
|
||||
MPASS(key != NULL);
|
||||
|
||||
u32 rss_seed[IXL_RSS_KEY_SIZE_REG] = {0x41b01687,
|
||||
0x183cfd8c, 0xce880440, 0x580cbc3c,
|
||||
0x35897377, 0x328b25e1, 0x4fa98922,
|
||||
0xb7d90c14, 0xd5bad70d, 0xcd15a2c1,
|
||||
0x0, 0x0, 0x0};
|
||||
|
||||
bcopy(rss_seed, key, IXL_RSS_KEY_SIZE);
|
||||
}
|
||||
|
||||
/**
|
||||
* i40e_vc_stat_str - convert virtchnl status err code to a string
|
||||
* @hw: pointer to the HW structure
|
||||
|
||||
Reference in new issue
Block a user