Skip to content

net: mpls: Cleanup nexthop iterator macros

Benjamin Poirier netdev 1 version Applied

Status from this message: This series was applied to netdev/net-next.git (master)

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 0 repliesApplied 2/2

Patches in v1 All 2 applied

#Subject and filesSizeRepliesApplied
1/2net: mpls: Remove duplicate variable from iterator macronet/mpls/internal.h+6 -70 repliesApplied
2/2net: mpls: Make for_nexthops iterator constnet/mpls/af_mpls.c net/mpls/internal.h+5 -50 repliesApplied

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH net-next 0/2] net: mpls: Cleanup nexthop iterator macros

From: Benjamin Poirier <[email protected]>

The mpls macros for_nexthops and change_nexthops were probably copied from decnet or ipv4 but they grew a superfluous variable and lost a beneficial "const".

Benjamin Poirier (2):
net: mpls: Remove duplicate variable from iterator macro
net: mpls: Make for_nexthops iterator const

 net/mpls/af_mpls.c  |  8 ++++----
 net/mpls/internal.h | 13 ++++++-------
 2 files changed, 10 insertions(+), 11 deletions(-)
Signature · 1 line
2.33.1