提交 36ca2808 编写于 作者: L linmiaohe 提交者: Xie XiuQi

ipvlan: disable l2e local xmit

euler inclusion
category: bugfix
bugzilla: NA
CVE: NA

-------------------------------------------------

Ipvlan l2e mode will cache skbuff for local xmit in
ipvlan_xmit_mode_l2e. But when tso/gso is disabled,
this would result in performance loss.

So we should stop caching the skbuff when tso/gso is
disabled.
Signed-off-by: Nlinmiaohe <linmiaohe@huawei.com>
Reviewed-by: NWei Yongjun <weiyongjun1@huawei.com>
Signed-off-by: NZhang Xiaoxu <zhangxiaoxu5@huawei.com>
Signed-off-by: NKeefe Liu <liuqifa@huawei.com>
Reviewed-by: NWei Yongjun <weiyongjun1@huawei.com>
Signed-off-by: NYang Yingliang <yangyingliang@huawei.com>
上级 22bf8210
......@@ -796,8 +796,9 @@ static int ipvlan_xmit_mode_l2e(struct sk_buff *skb, struct net_device *dev)
return NET_XMIT_DROP;
}
if (unlikely(ipvlan_l2e_local_xmit_event(ipvlan,
&skb)))
if (unlikely((dev->features &
(NETIF_F_GSO | NETIF_F_TSO)) &&
ipvlan_l2e_local_xmit_event(ipvlan, &skb)))
return NET_XMIT_DROP;
return ipvlan_rcv_frame(addr, &skb, true);
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册