Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 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
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement