]> git.baikalelectronics.ru Git - kernel.git/commit
net: ixgbe: Use new PCI_DEV_FLAGS_NO_RELAXED_ORDERING flag
authorDing Tianhong <dingtianhong@huawei.com>
Fri, 18 Aug 2017 06:21:05 +0000 (14:21 +0800)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Mon, 9 Oct 2017 14:43:06 +0000 (07:43 -0700)
commitea1fc9eb5c8bcd9d8cf731712c41d17e037c9c8b
treed456090941c8375410784b1e599370ff1a53831f
parent0516c2e9798a0e3662056e900b5059f181322157
net: ixgbe: Use new PCI_DEV_FLAGS_NO_RELAXED_ORDERING flag

The ixgbe driver use the compile check to determine if it can
send TLPs to Root Port with the Relaxed Ordering Attribute set,
this is too inconvenient, now the new flag PCI_DEV_FLAGS_NO_RELAXED_ORDERING
has been added to the kernel and we could check the bit4 in the PCIe
Device Control register to determine whether we should use the Relaxed
Ordering Attributes or not, so use this new way in the ixgbe driver.

Signed-off-by: Ding Tianhong <dingtianhong@huawei.com>
Acked-by: Emil Tantilov <emil.s.tantilov@intel.com>
Tested-by: Andrew Bowers <andrewx.bowers@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/ixgbe/ixgbe_82598.c
drivers/net/ethernet/intel/ixgbe/ixgbe_common.c