i40e: add MAC printing to debugfs dump VSI
authorShannon Nelson <shannon.nelson@intel.com>
Fri, 27 Feb 2015 09:18:36 +0000 (09:18 +0000)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Mon, 9 Mar 2015 17:53:19 +0000 (10:53 -0700)
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>
drivers/net/ethernet/intel/i40e/i40e_debugfs.c

index 2cc73fea393b6a8fbaf89b4660c674e0532ae0d2..daa88263af663eb0f88052602b9ec1cc4ce697e4 100644 (file)
@@ -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",