iavf: Add change MTU message

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>
This commit is contained in:
Patryk Małek 2021-06-04 09:53:30 -07:00 committed by Tony Nguyen
parent 196073f9c4
commit aeb5d11fd1
1 changed files with 2 additions and 0 deletions

View File

@ -3428,6 +3428,8 @@ static int iavf_change_mtu(struct net_device *netdev, int new_mtu)
{ {
struct iavf_adapter *adapter = netdev_priv(netdev); 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; netdev->mtu = new_mtu;
if (CLIENT_ENABLED(adapter)) { if (CLIENT_ENABLED(adapter)) {
iavf_notify_client_l2_params(&adapter->vsi); iavf_notify_client_l2_params(&adapter->vsi);