]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx5e: Act on delay probe time updates
authorHadar Hen Zion <hadarh@mellanox.com>
Tue, 14 Feb 2017 09:20:24 +0000 (11:20 +0200)
committerSaeed Mahameed <saeedm@mellanox.com>
Sun, 30 Apr 2017 13:03:15 +0000 (16:03 +0300)
commite4921d4510bb90dd6d6ba8a0dcfe7f07937a3d11
treefd2e6deb96a51d82fddc9e80c97d6e56334f03f4
parent910b933c4b26029dda5a42003715fc5ef99eb316
net/mlx5e: Act on delay probe time updates

The user can change delay_first_probe_time parameter through sysctl.
Listen to NETEVENT_DELAY_PROBE_TIME_UPDATE notifications and update the
intervals for updating the neighbours 'used' value periodic task and
for flow HW counters query periodic task.
Both of the intervals will be update only in case the new delay prob
time value is lower the current interval.

Since the driver saves only one min interval value and not per device,
the users will be able to set lower interval value for updating
neighbour 'used' value periodic task but they won't be able to schedule
a higher interval for this periodic task.
The used interval for scheduling neighbour 'used' value periodic task is
the minimal delay prob time parameter ever seen by the driver.

Signed-off-by: Hadar Hen Zion <hadarh@mellanox.com>
Reviewed-by: Or Gerlitz <ogerlitz@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
drivers/net/ethernet/mellanox/mlx5/core/en_rep.c