Created
April 12, 2019 23:43
Disable check for i210 check for ETF offloading
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
From a28171e401f60b70bc2265a23368a90bc437f600 Mon Sep 17 00:00:00 2001 | |
From: Vinicius Costa Gomes <vinicius.gomes@intel.com> | |
Date: Fri, 12 Apr 2019 13:08:40 -0700 | |
Subject: [PATCH] igb: Enable ETF offloading to be enabled in any controller | |
HACK HACK HACK | |
This disables any checks for the type of device, so enabling ETF is | |
allowed on any device. | |
Signed-off-by: Vinicius Costa Gomes <vinicius.gomes@intel.com> | |
--- | |
drivers/net/ethernet/intel/igb/igb_main.c | 4 ---- | |
1 file changed, 4 deletions(-) | |
diff --git a/drivers/net/ethernet/intel/igb/igb_main.c b/drivers/net/ethernet/intel/igb/igb_main.c | |
index acbb5b4f333d..a9e6e37c83ed 100644 | |
--- a/drivers/net/ethernet/intel/igb/igb_main.c | |
+++ b/drivers/net/ethernet/intel/igb/igb_main.c | |
@@ -2807,10 +2807,6 @@ static int igb_offload_txtime(struct igb_adapter *adapter, | |
struct e1000_hw *hw = &adapter->hw; | |
int err; | |
- /* Launchtime offloading is only supported by i210 controller. */ | |
- if (hw->mac.type != e1000_i210) | |
- return -EOPNOTSUPP; | |
- | |
/* Launchtime offloading is only supported by queues 0 and 1. */ | |
if (qopt->queue < 0 || qopt->queue > 1) | |
return -EINVAL; | |
-- | |
2.21.0 | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment