summaryrefslogtreecommitdiff
path: root/drivers/net/ethernet/intel/iavf/iavf_main.c
diff options
context:
space:
mode:
authorPatryk Małek <patryk.malek@intel.com>2021-06-04 19:53:30 +0300
committerTony Nguyen <anthony.l.nguyen@intel.com>2021-11-30 19:56:00 +0300
commitaeb5d11fd1efc96fefed850782a1ab62c4624c82 (patch)
tree00b60ad1bc1dc9c23a212e8f8bee120891c5d003 /drivers/net/ethernet/intel/iavf/iavf_main.c
parent196073f9c44be0b4758ead11e51bc2875f98df29 (diff)
downloadlinux-aeb5d11fd1efc96fefed850782a1ab62c4624c82.tar.xz
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>
Diffstat (limited to 'drivers/net/ethernet/intel/iavf/iavf_main.c')
-rw-r--r--drivers/net/ethernet/intel/iavf/iavf_main.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/ethernet/intel/iavf/iavf_main.c b/drivers/net/ethernet/intel/iavf/iavf_main.c
index 14934a7a13ef..ec8b2e40eaca 100644
--- a/drivers/net/ethernet/intel/iavf/iavf_main.c
+++ b/drivers/net/ethernet/intel/iavf/iavf_main.c
@@ -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);