OSDN Git Service

liquidio: update VF's netdev->max_mtu if there's a change in PF's MTU
authorVeerasenareddy Burru <veerasenareddy.burru@cavium.com>
Tue, 15 Aug 2017 23:26:22 +0000 (16:26 -0700)
committerDavid S. Miller <davem@davemloft.net>
Wed, 16 Aug 2017 18:07:55 +0000 (11:07 -0700)
commit251564f601a26d01b3b0e5a40889b4efb6823403
tree6bc728144a2bfade883f4d6649ed7ea50e444d29
parent5022111ecbaaa657f6bb03d471699516ce8f748f
liquidio: update VF's netdev->max_mtu if there's a change in PF's MTU

A VF's MTU is capped at the parent PF's MTU.  So if there's a change in the
PF's MTU, then update the VF's netdev->max_mtu.

Also remove duplicate log messages for MTU change.

Signed-off-by: Veerasenareddy Burru <veerasenareddy.burru@cavium.com>
Signed-off-by: Raghu Vatsavayi <raghu.vatsavayi@cavium.com>
Signed-off-by: Felix Manlunas <felix.manlunas@cavium.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/cavium/liquidio/lio_core.c
drivers/net/ethernet/cavium/liquidio/lio_vf_main.c