]> git.baikalelectronics.ru Git - kernel.git/commit
net: openvswitch: do not update max_headroom if new headroom is equal to old headroom
authorTaehee Yoo <ap420073@gmail.com>
Fri, 5 Jul 2019 16:08:09 +0000 (01:08 +0900)
committerDavid S. Miller <davem@davemloft.net>
Fri, 12 Jul 2019 22:16:58 +0000 (15:16 -0700)
commitd3e7054ea3459759b4611725f46fbccf622e07b6
treee777999ba2b119bc5a47aa746a2a9e273b8f5d5d
parentc0025c5c9b2a427336a25bfcb122da65be5ef762
net: openvswitch: do not update max_headroom if new headroom is equal to old headroom

When a vport is deleted, the maximum headroom size would be changed.
If the vport which has the largest headroom is deleted,
the new max_headroom would be set.
But, if the new headroom size is equal to the old headroom size,
updating routine is unnecessary.

Signed-off-by: Taehee Yoo <ap420073@gmail.com>
Tested-by: Greg Rose <gvrose8192@gmail.com>
Reviewed-by: Greg Rose <gvrose8192@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/openvswitch/datapath.c