Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save vcgomes/960af8f98424ba18ba531241fa22be61 to your computer and use it in GitHub Desktop.
Save vcgomes/960af8f98424ba18ba531241fa22be61 to your computer and use it in GitHub Desktop.
Disable check for i210 check for ETF offloading
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