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)
commit6b660c4177aaebdc73df7a3378f0e8b110aa4b51
treee777999ba2b119bc5a47aa746a2a9e273b8f5d5d
parent9db7e618fca34d0a7d61c149d726fd90644ecb1e
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