summaryrefslogtreecommitdiff
path: root/usr/src
diff options
context:
space:
mode:
authorRob Johnston <rob.johnston@joyent.com>2018-03-26 21:23:43 +0000
committerRob Johnston <rob.johnston@joyent.com>2018-03-26 21:23:43 +0000
commit251b3904ccb5bc9ccc4680f4cc37af4c69b3149e (patch)
treed48ca975522979bda72010f1957b90a4a9d0a07b /usr/src
parentf2e22fd582f8e4e9c4c2972adc77df3ac458bccd (diff)
downloadillumos-joyent-251b3904ccb5bc9ccc4680f4cc37af4c69b3149e.tar.gz
change the way we disable LSO so that's easier to toggle on/off from kmdb
Diffstat (limited to 'usr/src')
-rw-r--r--usr/src/uts/common/io/i40e/i40e_gld.c3
-rw-r--r--usr/src/uts/common/io/i40e/i40e_main.c3
2 files changed, 3 insertions, 3 deletions
diff --git a/usr/src/uts/common/io/i40e/i40e_gld.c b/usr/src/uts/common/io/i40e/i40e_gld.c
index ab7ca181b1..b319459cd3 100644
--- a/usr/src/uts/common/io/i40e/i40e_gld.c
+++ b/usr/src/uts/common/io/i40e/i40e_gld.c
@@ -743,8 +743,7 @@ i40e_m_getcapab(void *arg, mac_capab_t cap, void *cap_data)
case MAC_CAPAB_LSO: {
mac_capab_lso_t *cap_lso = cap_data;
- /* XXX - temporarily disable LSO till it actually works */
- return (B_FALSE);
+
if (i40e->i40e_tx_lso_enable == B_TRUE) {
cap_lso->lso_flags = LSO_TX_BASIC_TCP_IPV4;
cap_lso->lso_basic_tcp_ipv4.lso_max = I40E_LSO_MAXLEN;
diff --git a/usr/src/uts/common/io/i40e/i40e_main.c b/usr/src/uts/common/io/i40e/i40e_main.c
index 3b2688c085..8a6bd4659d 100644
--- a/usr/src/uts/common/io/i40e/i40e_main.c
+++ b/usr/src/uts/common/io/i40e/i40e_main.c
@@ -1558,8 +1558,9 @@ i40e_init_properties(i40e_t *i40e)
i40e->i40e_tx_hcksum_enable = i40e_get_prop(i40e, "tx_hcksum_enable",
B_FALSE, B_TRUE, B_TRUE);
+ /* XXX - temporarily disable LSO by default till it actually works */
i40e->i40e_tx_lso_enable = i40e_get_prop(i40e, "tx_lso_enable",
- B_FALSE, B_TRUE, B_TRUE);
+ B_FALSE, B_TRUE, B_FALSE);
i40e->i40e_rx_hcksum_enable = i40e_get_prop(i40e, "rx_hcksum_enable",
B_FALSE, B_TRUE, B_TRUE);