mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-16 08:44:21 +08:00
i40e: add MAC printing to debugfs dump VSI
Print the LAN, SAN, and Port MACs for the VSI if debugfs command dump VSI is used on the PF's VSI. Example output: [260221.871244] i40e 0000:04:00.0: MAC address: 68:05:ca:26:15:e0 SAN MAC: 00:00:00:00:02:00 Port MAC: 68:05:ca:26:15:e3 Change-ID: I0b393113dfb5ee7ff4f9e5227e4177885f0cc15e Signed-off-by: Shannon Nelson <shannon.nelson@intel.com> Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
This commit is contained in:
parent
b40c82e6ae
commit
2ddb80c9c4
@ -390,6 +390,11 @@ static void i40e_dbg_dump_vsi_seid(struct i40e_pf *pf, int seid)
|
||||
" netdev_registered = %i, current_netdev_flags = 0x%04x, state = %li flags = 0x%08lx\n",
|
||||
vsi->netdev_registered,
|
||||
vsi->current_netdev_flags, vsi->state, vsi->flags);
|
||||
if (vsi == pf->vsi[pf->lan_vsi])
|
||||
dev_info(&pf->pdev->dev, "MAC address: %pM SAN MAC: %pM Port MAC: %pM\n",
|
||||
pf->hw.mac.addr,
|
||||
pf->hw.mac.san_addr,
|
||||
pf->hw.mac.port_addr);
|
||||
list_for_each_entry(f, &vsi->mac_filter_list, list) {
|
||||
dev_info(&pf->pdev->dev,
|
||||
" mac_filter_list: %pM vid=%d, is_netdev=%d is_vf=%d counter=%d\n",
|
||||
|
Loading…
Reference in New Issue
Block a user