mpls: defer ttl decrement in mpls_forward()
authorKangmin Park <l4stpr0gr4m@gmail.com>
Thu, 22 Jul 2021 18:50:28 +0000 (03:50 +0900)
committerDavid S. Miller <davem@davemloft.net>
Fri, 23 Jul 2021 16:17:56 +0000 (17:17 +0100)
commit6a6b83ca471c50a05d1b07bd9594469986106bed
tree2b87644abea848de3b7087a77c20471ac8fa560e
parent8cc236db1a91d0c91651595ba75942a583008455
mpls: defer ttl decrement in mpls_forward()

Defer ttl decrement to optimize in tx_err case. There is no need
to decrease ttl in the case of goto tx_err.

Signed-off-by: Kangmin Park <l4stpr0gr4m@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/mpls/af_mpls.c