Commit e240f674 authored by Carolyn Wyborny's avatar Carolyn Wyborny Committed by Jeff Kirsher

i40e: fix proc/int descriptions

This patch fixes a problem where the /proc/interrupts descriptions
from the msix configuration were truncating the needed bus info,
making it hard to distinguish configuration from port to port.
This patch increases the string buffer size in order to allow the
full data to be displayed and sync's the text formatting of the misc
and fdir interrupt names

Change-ID: Ib01d6c61fb3f4ac70fbdf5bcc520b22638ea54b7
Signed-off-by: default avatarCarolyn Wyborny <carolyn.wyborny@intel.com>
Signed-off-by: default avatarJeff Kirsher <jeffrey.t.kirsher@intel.com>
parent 83c5fe77
...@@ -4845,7 +4845,7 @@ static int i40e_open(struct net_device *netdev) ...@@ -4845,7 +4845,7 @@ static int i40e_open(struct net_device *netdev)
int i40e_vsi_open(struct i40e_vsi *vsi) int i40e_vsi_open(struct i40e_vsi *vsi)
{ {
struct i40e_pf *pf = vsi->back; struct i40e_pf *pf = vsi->back;
char int_name[IFNAMSIZ]; char int_name[IFNAMSIZ + 9];
int err; int err;
/* allocate descriptors */ /* allocate descriptors */
...@@ -4879,7 +4879,7 @@ int i40e_vsi_open(struct i40e_vsi *vsi) ...@@ -4879,7 +4879,7 @@ int i40e_vsi_open(struct i40e_vsi *vsi)
goto err_set_queues; goto err_set_queues;
} else if (vsi->type == I40E_VSI_FDIR) { } else if (vsi->type == I40E_VSI_FDIR) {
snprintf(int_name, sizeof(int_name) - 1, "%s-%s-fdir", snprintf(int_name, sizeof(int_name) - 1, "%s-%s:fdir",
dev_driver_string(&pf->pdev->dev), dev_driver_string(&pf->pdev->dev),
dev_name(&pf->pdev->dev)); dev_name(&pf->pdev->dev));
err = i40e_vsi_request_irq(vsi, int_name); err = i40e_vsi_request_irq(vsi, int_name);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment