i40e: Add support to program FDir SB rules for VF from PF through ethtool
authorAnjali Singhai Jain <anjali.singhai@intel.com>
Tue, 7 Apr 2015 23:45:31 +0000 (19:45 -0400)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Wed, 15 Apr 2015 00:13:42 +0000 (17:13 -0700)
commite7c8c60bc5d48994a67e4b1c7bfb01d6979dbc54
tree25320d42ea760ea80a9021ea25542f9b1608d6d9
parent2619ef475f7607f1cf1c434d4adca2593a59a6e6
i40e: Add support to program FDir SB rules for VF from PF through ethtool

With this patch we can now add Flow director Sideband rules for a VF from
it's PF. Here is an example on how it can be done when VF id = 5 and
queue = 2:

"ethtool -N ethx flow-type udp4 src-ip x.x.x.x dst-ip y.y.y.y src-port p1 dst-port p2 action 2 user-def 5"

User-def specifies VF id and action specifies queue.

Change-ID: Ib37d6dff3823a4d85caffde638473891c38c2b89
Signed-off-by: Anjali Singhai Jain <anjali.singhai@intel.com>
Tested-by: Jim Young <james.m.young@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/i40e/i40e_ethtool.c