Advertisement
Guest User

Untitled

a guest
Apr 23rd, 2019
107
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.11 KB | None | 0 0
  1. From a28171e401f60b70bc2265a23368a90bc437f600 Mon Sep 17 00:00:00 2001
  2. From: Vinicius Costa Gomes <vinicius.gomes@intel.com>
  3. Date: Fri, 12 Apr 2019 13:08:40 -0700
  4. Subject: [PATCH] igb: Enable ETF offloading to be enabled in any controller
  5.  
  6. HACK HACK HACK
  7.  
  8. This disables any checks for the type of device, so enabling ETF is
  9. allowed on any device.
  10.  
  11. Signed-off-by: Vinicius Costa Gomes <vinicius.gomes@intel.com>
  12. ---
  13. drivers/net/ethernet/intel/igb/igb_main.c | 4 ----
  14. 1 file changed, 4 deletions(-)
  15.  
  16. diff --git a/drivers/net/ethernet/intel/igb/igb_main.c b/drivers/net/ethernet/intel/igb/igb_main.c
  17. index acbb5b4f333d..a9e6e37c83ed 100644
  18. --- a/drivers/net/ethernet/intel/igb/igb_main.c
  19. +++ b/drivers/net/ethernet/intel/igb/igb_main.c
  20. @@ -2807,10 +2807,6 @@ static int igb_offload_txtime(struct igb_adapter *adapter,
  21. struct e1000_hw *hw = &adapter->hw;
  22. int err;
  23.  
  24. - /* Launchtime offloading is only supported by i210 controller. */
  25. - if (hw->mac.type != e1000_i210)
  26. - return -EOPNOTSUPP;
  27. -
  28. /* Launchtime offloading is only supported by queues 0 and 1. */
  29. if (qopt->queue < 0 || qopt->queue > 1)
  30. return -EINVAL;
  31. --
  32. 2.21.0
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement