From: Or Gerlitz <hidden> Date: 2012-07-25 14:36:26
From: Amir Vadai <redacted>
RFS filter id can't have the special value RPS_NO_FILTER,
need to skip it when allocating id's.
Also, changed an ifdef into a more elegant IS_DEFINED.
CC: Ben Hutchings <redacted>
Signed-off-by: Amir Vadai <redacted>
Signed-off-by: Or Gerlitz <redacted>
---
Addressing feedback from Ben Hutchings
resending as of typo in my signature... sorry
drivers/net/ethernet/mellanox/mlx4/en_cq.c | 8 ++------
drivers/net/ethernet/mellanox/mlx4/en_netdev.c | 2 +-
2 files changed, 3 insertions(+), 7 deletions(-)
From: Ben Hutchings <hidden> Date: 2012-07-25 14:57:15
On Wed, 2012-07-25 at 17:36 +0300, Or Gerlitz wrote:
From: Amir Vadai <redacted>
RFS filter id can't have the special value RPS_NO_FILTER,
need to skip it when allocating id's.
Also, changed an ifdef into a more elegant IS_DEFINED.
CC: Ben Hutchings <redacted>
Signed-off-by: Amir Vadai <redacted>
Signed-off-by: Or Gerlitz <redacted>
---
Addressing feedback from Ben Hutchings
resending as of typo in my signature... sorry
--signoff is so much easier than typing it every time :-)
This should do for now.
Ideally the filter ID would be based on the index used in hardware. We
would need to change the API to allow for devices where this cannot be
determined synchronously, as in this driver. (And the filter ID might
also need to be wider.)
Ben.
--
Ben Hutchings, Staff Engineer, Solarflare
Not speaking for my employer; that's the marketing department's job.
They asked us to note that Solarflare product names are trademarked.
From: Ben Hutchings <hidden> Date: 2012-07-25 14:57:30
On Wed, 2012-07-25 at 17:36 +0300, Or Gerlitz wrote:
From: Amir Vadai <redacted>
RFS filter id can't have the special value RPS_NO_FILTER,
need to skip it when allocating id's.
Also, changed an ifdef into a more elegant IS_DEFINED.
CC: Ben Hutchings <redacted>
Signed-off-by: Amir Vadai <redacted>
Signed-off-by: Or Gerlitz <redacted>
---
Addressing feedback from Ben Hutchings
resending as of typo in my signature... sorry
--signoff is so much easier than typing it every time :-)
This should do for now.
Ideally the filter ID would be based on the index used in hardware. We
would need to change the API to allow for devices where this cannot be
determined synchronously, as in this driver. (And the filter ID might
also need to be wider.)
Ben.
--
Ben Hutchings, Staff Engineer, Solarflare
Not speaking for my employer; that's the marketing department's job.
They asked us to note that Solarflare product names are trademarked.
Ideally the filter ID would be based on the index used in hardware. We
would need to change the API to allow for devices where this cannot be
determined synchronously, as in this driver. (And the filter ID might
also need to be wider.)
Ben.
This change breaks the build.
You can't do this check at run-time, because the reason you need to
check CONFIG_RFS_ACCEL is because if that's disabled then the netdev
structure doesn't even have the ->rx_cpu_rmap member.
This change breaks the build.
You can't do this check at run-time, because the reason you need to
check CONFIG_RFS_ACCEL is because if that's disabled then the netdev
structure doesn't even have the ->rx_cpu_rmap member.
Yes, sorry for suggesting that, Or.
Ben.
--
Ben Hutchings, Staff Engineer, Solarflare
Not speaking for my employer; that's the marketing department's job.
They asked us to note that Solarflare product names are trademarked.