提交 11b2ae82 编写于 作者: M Miaohe Lin 提交者: Zheng Zengkai

ipvlan: disable l2e local xmit

euler inclusion
category: bugfix
bugzilla: https://gitee.com/openeuler/kernel/issues/I4IHL1
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: NMiaohe Lin <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>
Signed-off-by: NYuehaibing <yuehaibing@huawei.com>
Reviewed-by: NWenan Mao <maowenan@huawei.com>
Signed-off-by: NChen Zhou <chenzhou10@huawei.com>
Signed-off-by: NWang Hai <wanghai38@huawei.com>
Reviewed-by: NWei Yongjun <weiyongjun1@huawei.com>
Reviewed-by: NYue Haibing <yuehaibing@huawei.com>
Signed-off-by: NZheng Zengkai <zhengzengkai@huawei.com>
上级 364de98e
...@@ -793,8 +793,9 @@ static int ipvlan_xmit_mode_l2e(struct sk_buff *skb, struct net_device *dev) ...@@ -793,8 +793,9 @@ static int ipvlan_xmit_mode_l2e(struct sk_buff *skb, struct net_device *dev)
return NET_XMIT_DROP; return NET_XMIT_DROP;
} }
if (unlikely(ipvlan_l2e_local_xmit_event(ipvlan, if (unlikely((dev->features &
&skb))) (NETIF_F_GSO | NETIF_F_TSO)) &&
ipvlan_l2e_local_xmit_event(ipvlan, &skb)))
return NET_XMIT_DROP; return NET_XMIT_DROP;
return ipvlan_rcv_frame(addr, &skb, true); return ipvlan_rcv_frame(addr, &skb, true);
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册