net: add rte prefix to ether structures
[dpdk.git] / drivers / net / enic / enic_res.c
index d289f3d..f7cbc90 100644 (file)
@@ -61,10 +61,9 @@ int enic_get_vnic_config(struct enic *enic)
         * and will be 0 for legacy firmware and VICs
         */
        if (c->max_pkt_size > ENIC_DEFAULT_RX_MAX_PKT_SIZE)
-               enic->max_mtu = c->max_pkt_size - (ETHER_HDR_LEN + 4);
+               enic->max_mtu = c->max_pkt_size - ETHER_HDR_LEN;
        else
-               enic->max_mtu = ENIC_DEFAULT_RX_MAX_PKT_SIZE
-                               - (ETHER_HDR_LEN + 4);
+               enic->max_mtu = ENIC_DEFAULT_RX_MAX_PKT_SIZE - ETHER_HDR_LEN;
        if (c->mtu == 0)
                c->mtu = 1500;