mbox series

[net-next,0/3] Remove redundant functions and use generic functions

Message ID 20230808114504.4036008-1-lizetao1@huawei.com (mailing list archive)
Headers show
Series Remove redundant functions and use generic functions | expand

Message

lizetao Aug. 8, 2023, 11:45 a.m. UTC
This patch set removes some redundant functions. In the network module,
two generic functions are provided to convert u64 value and Ethernet
MAC address. Using generic functions helps reduce redundant code and
improve code readability.

Li Zetao (3):
  octeontx2-af: Remove redundant functions mac2u64() and cfg2mac()
  octeontx2-af: Use u64_to_ether_addr() to convert ethernet address
  octeontx2-af: Remove redundant functions rvu_npc_exact_mac2u64()

 .../net/ethernet/marvell/octeontx2/af/cgx.c   | 26 +++----------------
 .../ethernet/marvell/octeontx2/af/rvu_cgx.c   |  5 ++--
 .../marvell/octeontx2/af/rvu_npc_hash.c       | 20 ++------------
 3 files changed, 8 insertions(+), 43 deletions(-)

Comments

patchwork-bot+netdevbpf@kernel.org Aug. 9, 2023, 10:40 p.m. UTC | #1
Hello:

This series was applied to netdev/net-next.git (main)
by Jakub Kicinski <kuba@kernel.org>:

On Tue, 8 Aug 2023 19:45:01 +0800 you wrote:
> This patch set removes some redundant functions. In the network module,
> two generic functions are provided to convert u64 value and Ethernet
> MAC address. Using generic functions helps reduce redundant code and
> improve code readability.
> 
> Li Zetao (3):
>   octeontx2-af: Remove redundant functions mac2u64() and cfg2mac()
>   octeontx2-af: Use u64_to_ether_addr() to convert ethernet address
>   octeontx2-af: Remove redundant functions rvu_npc_exact_mac2u64()
> 
> [...]

Here is the summary with links:
  - [net-next,1/3] octeontx2-af: Remove redundant functions mac2u64() and cfg2mac()
    https://git.kernel.org/netdev/net-next/c/7d0bc2602308
  - [net-next,2/3] octeontx2-af: Use u64_to_ether_addr() to convert ethernet address
    https://git.kernel.org/netdev/net-next/c/e62c7adfd4ac
  - [net-next,3/3] octeontx2-af: Remove redundant functions rvu_npc_exact_mac2u64()
    https://git.kernel.org/netdev/net-next/c/47f8dc0938e9

You are awesome, thank you!