-
Notifications
You must be signed in to change notification settings - Fork 734
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
i40e系列网卡 dpvs fullnet不行 #433
Comments
把详细的日志贴出来 |
void netif_mask_fdir_filter(int af, const struct netif_port *port,
主要在这段代码中 调用i40e网卡获取fdir_info信息接口,get不到rte_eth_fdir_masks相关信息 i40e_fdir.c中没有对掩码进行设置,并且没有实现该接口 |
就是flow director表项设置问题,i40e网卡底层没有设置端口掩码的接口,造成流不能命中flow director |
static void
} 看这里没有获取fdir->mask |
static void
} 这里有获取fdir_info->mask |
之前发现有这个问题,查看了X710的datasheet,flow director不支持tcp的mask功能,标准协议的mask都无法用软件更改。 |
在dpvs.conf中打开 conn/redirect 配置,通过软件的方法可使回来的包命中连接表,不过性能会有所损耗。 |
参考这个patch:#440 |
i40e网卡驱动i40e_fdir.c没地方设置tcp/udp input dst_port_mask,导致fullnet返程数据不能根据cpu 个数做掩码,不能命中flow director表项,返程数据hash到了不同的核,造成conn lookup miss
IPVS: new conn: [1] TCP 10.20.130.108/57705 10.102.135.250/80 10.102.135.251/1032 10.102.12.96/80 refs 2
IPVS: state trans: TCP in [S...] 10.20.130.108:57705->10.102.12.96:80 state NONE->SYN_RECV conn.refcnt 2
IPVS: conn lookup: [6] TCP 10.102.12.96/80 -> 10.102.135.251/1032 miss
The text was updated successfully, but these errors were encountered: