You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
G_LOG(WARNING, "%s(%s): port %hu (%s) requires a RSS hash key of %i bytes; Gatekeeper only supports keys of [%i, %i] bytes long that are multiple of 4\n",
@@ -983,8 +1083,8 @@ check_port_rss(struct gatekeeper_if *iface, unsigned int port_idx,
983
1083
if (iface->rss_key_len <= GATEKEEPER_RSS_MAX_KEY_LEN&&
984
1084
iface->rss_key_len!=dev_info->hash_key_size) {
985
1085
G_LOG(WARNING, "%s(%s): port %hu (%s) requires a RSS hash key of %i bytes, but another port requires a key of %i bytes; all ports of the same interface must have the same key length\n",
@@ -995,20 +1095,23 @@ check_port_rss(struct gatekeeper_if *iface, unsigned int port_idx,
995
1095
/* No IPv4 hashes are supported, so disable RSS. */
996
1096
if ((rss_off&GATEKEEPER_IPV4_RSS_HF) ==0) {
997
1097
G_LOG(WARNING, "%s(%s): port %hu (%s) does not support any IPv4 related RSS hashes\n",
998
-
__func__, iface->name,
999
-
iface->ports[port_idx],
1098
+
__func__, iface->name, port_id,
1000
1099
iface->pci_addrs[port_idx]);
1001
1100
goto disable_rss;
1002
1101
}
1003
1102
1004
-
/*
1005
-
* The IPv4 hash that we think is typically
1006
-
* used is not supported, so warn the user.
1007
-
*/
1008
-
if ((rss_offÐ_RSS_IPV4) ==0) {
1009
-
G_LOG(WARNING, "%s(%s): port %hu (%s) does not support the ETH_RSS_IPV4 hash function; the device may not hash packets to the correct queues\n",
1010
-
__func__, iface->name,
1011
-
iface->ports[port_idx],
1103
+
if (iface->alternative_rss_hash) {
1104
+
ret=i40e_disable_ipv4_tcp_udp_ports_from_inset(
1105
+
port_id);
1106
+
if (ret<0)
1107
+
goto disable_rss;
1108
+
} elseif ((rss_offÐ_RSS_IPV4) ==0) {
1109
+
/*
1110
+
* The IPv4 hash that we think is typically
1111
+
* used is not supported, so warn the user.
1112
+
*/
1113
+
G_LOG(WARNING, "%s(%s): port %hu (%s) does not support the ETH_RSS_IPV4 hash function. The device may not hash packets to the correct queues. You may try parameter alternative_rss_hash.\n",
1114
+
__func__, iface->name, port_id,
1012
1115
iface->pci_addrs[port_idx]);
1013
1116
}
1014
1117
}
@@ -1018,20 +1121,23 @@ check_port_rss(struct gatekeeper_if *iface, unsigned int port_idx,
1018
1121
/* No IPv6 hashes are supported, so disable RSS. */
1019
1122
if ((rss_off&GATEKEEPER_IPV6_RSS_HF) ==0) {
1020
1123
G_LOG(WARNING, "%s(%s): port %hu (%s) does not support any IPv6 related RSS hashes\n",
1021
-
__func__, iface->name,
1022
-
iface->ports[port_idx],
1124
+
__func__, iface->name, port_id,
1023
1125
iface->pci_addrs[port_idx]);
1024
1126
goto disable_rss;
1025
1127
}
1026
1128
1027
-
/*
1028
-
* The IPv6 hash that we think is typically
1029
-
* used is not supported, so warn the user.
1030
-
*/
1031
-
if ((rss_offÐ_RSS_IPV6) ==0) {
1032
-
G_LOG(WARNING, "%s(%s): port %hu (%s) does not support the ETH_RSS_IPV6 hash function; the device may not hash packets to the correct queues\n",
1033
-
__func__, iface->name,
1034
-
iface->ports[port_idx],
1129
+
if (iface->alternative_rss_hash) {
1130
+
ret=i40e_disable_ipv6_tcp_udp_ports_from_inset(
1131
+
port_id);
1132
+
if (ret<0)
1133
+
goto disable_rss;
1134
+
} elseif ((rss_offÐ_RSS_IPV6) ==0) {
1135
+
/*
1136
+
* The IPv6 hash that we think is typically
1137
+
* used is not supported, so warn the user.
1138
+
*/
1139
+
G_LOG(WARNING, "%s(%s): port %hu (%s) does not support the ETH_RSS_IPV6 hash function. The device may not hash packets to the correct queues. You may try parameter alternative_rss_hash.\n",
1140
+
__func__, iface->name, port_id,
1035
1141
iface->pci_addrs[port_idx]);
1036
1142
}
1037
1143
}
@@ -1045,9 +1151,9 @@ check_port_rss(struct gatekeeper_if *iface, unsigned int port_idx,
1045
1151
if ((rss_off&port_conf->rx_adv_conf.rss_conf.rss_hf) !=
1046
1152
port_conf->rx_adv_conf.rss_conf.rss_hf) {
1047
1153
G_LOG(WARNING, "%s(%s): port %hu (%s) only supports RSS hash functions 0x%"PRIx64", but Gatekeeper asks for 0x%"PRIx64"\n",
0 commit comments