iavf: Add change MTU message
authorPatryk Małek <patryk.malek@intel.com>
Fri, 4 Jun 2021 16:53:30 +0000 (09:53 -0700)
committerTony Nguyen <anthony.l.nguyen@intel.com>
Tue, 30 Nov 2021 16:56:00 +0000 (08:56 -0800)
Add a netdev_dbg log entry in case of a change of MTU so that user is
notified about this change in the same manner as in case of pf driver.

Signed-off-by: Patryk Małek <patryk.malek@intel.com>
Tested-by: George Kuruvinakunnel <george.kuruvinakunnel@intel.com>
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
drivers/net/ethernet/intel/iavf/iavf_main.c

index 14934a7..ec8b2e4 100644 (file)
@@ -3428,6 +3428,8 @@ static int iavf_change_mtu(struct net_device *netdev, int new_mtu)
 {
        struct iavf_adapter *adapter = netdev_priv(netdev);
 
+       netdev_dbg(netdev, "changing MTU from %d to %d\n",
+                  netdev->mtu, new_mtu);
        netdev->mtu = new_mtu;
        if (CLIENT_ENABLED(adapter)) {
                iavf_notify_client_l2_params(&adapter->vsi);