summaryrefslogtreecommitdiff
path: root/include/linux/fpga/fpga-bridge.h
diff options
context:
space:
mode:
authorIdo Schimmel <idosch@nvidia.com>2022-11-01 15:39:35 +0300
committerJakub Kicinski <kuba@kernel.org>2022-11-03 06:45:23 +0300
commit42e51de97cb449aa7d2aa1638cb5fcd2695b8f98 (patch)
tree6299c109d411603b052c09aac83a59dce94a064d /include/linux/fpga/fpga-bridge.h
parent3319dbb3e755398f254c3daa04b9030197137efe (diff)
downloadlinux-42e51de97cb449aa7d2aa1638cb5fcd2695b8f98.tar.xz
rocker: Avoid unnecessary scheduling of work item
The work item function ofdpa_port_fdb_learn_work() does not do anything when 'OFDPA_OP_FLAG_LEARNED' is not set in the work item's flags. Therefore, do not allocate and do not schedule the work item when the flag is not set. Suggested-by: Vladimir Oltean <vladimir.oltean@nxp.com> Signed-off-by: Ido Schimmel <idosch@nvidia.com> Reviewed-by: Vladimir Oltean <vladimir.oltean@nxp.com> Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'include/linux/fpga/fpga-bridge.h')
0 files changed, 0 insertions, 0 deletions