i40e: Add define for interrupt name string len
This patch creates a define for interrupt name string configuration that is large enough to contain full bus/slot info, rather than just netdev->name. Change-ID: Iaac0d23dfb8526defeed69d91cea85ed4a50ddb2 Signed-off-by: Carolyn Wyborny <carolyn.wyborny@intel.com> Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
This commit is contained in:

committed by
Jeff Kirsher

parent
aebfc8169a
commit
b294ac70fc
@@ -92,6 +92,7 @@
|
||||
#define I40E_MAX_USER_PRIORITY 8
|
||||
#define I40E_DEFAULT_MSG_ENABLE 4
|
||||
#define I40E_QUEUE_WAIT_RETRY_LIMIT 10
|
||||
#define I40E_INT_NAME_STR_LEN (IFNAMSIZ + 9)
|
||||
|
||||
#define I40E_NVM_VERSION_LO_SHIFT 0
|
||||
#define I40E_NVM_VERSION_LO_MASK (0xff << I40E_NVM_VERSION_LO_SHIFT)
|
||||
@@ -268,7 +269,7 @@ struct i40e_pf {
|
||||
u16 rx_itr_default;
|
||||
u16 tx_itr_default;
|
||||
u16 msg_enable;
|
||||
char misc_int_name[IFNAMSIZ + 9];
|
||||
char int_name[I40E_INT_NAME_STR_LEN];
|
||||
u16 adminq_work_limit; /* num of admin receive queue desc to process */
|
||||
unsigned long service_timer_period;
|
||||
unsigned long service_timer_previous;
|
||||
@@ -524,7 +525,7 @@ struct i40e_q_vector {
|
||||
|
||||
cpumask_t affinity_mask;
|
||||
struct rcu_head rcu; /* to avoid race with update stats on free */
|
||||
char name[IFNAMSIZ + 9];
|
||||
char name[I40E_INT_NAME_STR_LEN];
|
||||
} ____cacheline_internodealigned_in_smp;
|
||||
|
||||
/* lan device */
|
||||
|
Reference in New Issue
Block a user