diff options
author | David S. Miller <davem@davemloft.net> | 2020-05-31 02:53:57 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2020-05-31 02:53:57 +0200 |
commit | 4300c7e7fe152be96b41b2135e3ace9a1e8db308 (patch) | |
tree | 6317281b4933c74b8716ed6e01dbf4d67d8f8a6d /net | |
parent | Merge branch 'hns3-next' (diff) | |
parent | net/mlx5e: Make mlx5e_dcbnl_ops static (diff) | |
download | linux-4300c7e7fe152be96b41b2135e3ace9a1e8db308.tar.xz linux-4300c7e7fe152be96b41b2135e3ace9a1e8db308.zip |
Merge tag 'mlx5-cleanup-2020-05-29' of git://git.kernel.org/pub/scm/linux/kernel/git/saeed/linux
Saeed Mahameed says:
====================
mlx5-cleanup-2020-05-29
Accumulated cleanup patches and sparse warning fixes for mlx5 driver.
1) sync with mlx5-next branch
2) Eli Cohen declares mpls_entry_encode() helper in mpls.h as suggested
by Jakub Kicinski and David Ahern, and use it in mlx5
3) Jesper Fixes xdp data_meta setup in mlx5
4) Many sparse and build warnings cleanup
====================
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net')
-rw-r--r-- | net/mpls/internal.h | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/net/mpls/internal.h b/net/mpls/internal.h index 0e9aa94adc07..838cdfc10e47 100644 --- a/net/mpls/internal.h +++ b/net/mpls/internal.h @@ -172,17 +172,6 @@ struct mpls_route { /* next hop label forwarding entry */ #define endfor_nexthops(rt) } -static inline struct mpls_shim_hdr mpls_entry_encode(u32 label, unsigned ttl, unsigned tc, bool bos) -{ - struct mpls_shim_hdr result; - result.label_stack_entry = - cpu_to_be32((label << MPLS_LS_LABEL_SHIFT) | - (tc << MPLS_LS_TC_SHIFT) | - (bos ? (1 << MPLS_LS_S_SHIFT) : 0) | - (ttl << MPLS_LS_TTL_SHIFT)); - return result; -} - static inline struct mpls_entry_decoded mpls_entry_decode(struct mpls_shim_hdr *hdr) { struct mpls_entry_decoded result; |