]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
IB/opa_vnic: Set POD value for Ethernet MTU
authorNiranjana Vishwanathapura <niranjana.vishwanathapura@intel.com>
Tue, 26 Sep 2017 13:43:54 +0000 (06:43 -0700)
committerDoug Ledford <dledford@redhat.com>
Wed, 27 Sep 2017 15:21:57 +0000 (11:21 -0400)
Set power on default value of 1500 for eth_mtu.

Reviewed-by: Sudeep Dutt <sudeep.dutt@intel.com>
Signed-off-by: Niranjana Vishwanathapura <niranjana.vishwanathapura@intel.com>
Signed-off-by: Dennis Dalessandro <dennis.dalessandro@intel.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/ulp/opa_vnic/opa_vnic_netdev.c
drivers/infiniband/ulp/opa_vnic/opa_vnic_vema.c

index 41fd05baed828c75b81fc6bd31e2283dbfa89eb3..305f3a83176a42a3e0b9262c3bebe781d6f9c975 100644 (file)
@@ -183,6 +183,7 @@ static inline void opa_vnic_set_pod_values(struct opa_vnic_adapter *adapter)
        adapter->info.vport.max_smac_ent = OPA_VNIC_MAX_SMAC_LIMIT;
        adapter->info.vport.config_state = OPA_VNIC_STATE_DROP_ALL;
        adapter->info.vport.eth_link_status = OPA_VNIC_ETH_LINK_DOWN;
+       adapter->info.vesw.eth_mtu = ETH_DATA_LEN;
 }
 
 /* opa_vnic_set_mac_addr - change mac address */
index 21f0b481edcc01e1af692cf08883b0c78529a708..4b615c1451e795aa087e23f449ada8e1a49bf4e1 100644 (file)
@@ -186,6 +186,7 @@ static inline void vema_get_pod_values(struct opa_veswport_info *port_info)
                cpu_to_be16(OPA_VNIC_MAX_SMAC_LIMIT);
        port_info->vport.oper_state = OPA_VNIC_STATE_DROP_ALL;
        port_info->vport.config_state = OPA_VNIC_STATE_DROP_ALL;
+       port_info->vesw.eth_mtu = cpu_to_be16(ETH_DATA_LEN);
 }
 
 /**