net/bnxt: rename function checking MAC address
authorScott Branden <scott.branden@broadcom.com>
Tue, 1 May 2018 01:06:06 +0000 (18:06 -0700)
committerFerruh Yigit <ferruh.yigit@intel.com>
Mon, 14 May 2018 21:31:48 +0000 (22:31 +0100)
rename check_zero_bytes to bnxt_check_zero_bytes to match proper prefix.

Signed-off-by: Scott Branden <scott.branden@broadcom.com>
Signed-off-by: Ajit Khaparde <ajit.khaparde@broadcom.com>
drivers/net/bnxt/bnxt_ethdev.c
drivers/net/bnxt/bnxt_filter.c
drivers/net/bnxt/bnxt_filter.h

index 2190a2e..783233a 100644 (file)
@@ -3285,7 +3285,7 @@ skip_init:
                goto error_free;
        }
 
-       if (check_zero_bytes(bp->dflt_mac_addr, ETHER_ADDR_LEN)) {
+       if (bnxt_check_zero_bytes(bp->dflt_mac_addr, ETHER_ADDR_LEN)) {
                PMD_DRV_LOG(ERR,
                            "Invalid MAC addr %02X:%02X:%02X:%02X:%02X:%02X\n",
                            bp->dflt_mac_addr[0], bp->dflt_mac_addr[1],
index dadd1e3..e36da99 100644 (file)
@@ -231,7 +231,7 @@ nxt_non_void_action(const struct rte_flow_action *cur)
        }
 }
 
-int check_zero_bytes(const uint8_t *bytes, int len)
+int bnxt_check_zero_bytes(const uint8_t *bytes, int len)
 {
        int i;
        for (i = 0; i < len; i++)
@@ -512,13 +512,15 @@ bnxt_validate_and_parse_flow_type(struct bnxt *bp,
                                   ipv6_spec->hdr.src_addr, 16);
                        rte_memcpy(filter->dst_ipaddr,
                                   ipv6_spec->hdr.dst_addr, 16);
-                       if (!check_zero_bytes(ipv6_mask->hdr.src_addr, 16)) {
+                       if (!bnxt_check_zero_bytes(ipv6_mask->hdr.src_addr,
+                                                  16)) {
                                rte_memcpy(filter->src_ipaddr_mask,
                                           ipv6_mask->hdr.src_addr, 16);
                                en |= !use_ntuple ? 0 :
                                    NTUPLE_FLTR_ALLOC_INPUT_EN_SRC_IPADDR_MASK;
                        }
-                       if (!check_zero_bytes(ipv6_mask->hdr.dst_addr, 16)) {
+                       if (!bnxt_check_zero_bytes(ipv6_mask->hdr.dst_addr,
+                                                  16)) {
                                rte_memcpy(filter->dst_ipaddr_mask,
                                           ipv6_mask->hdr.dst_addr, 16);
                                en |= !use_ntuple ? 0 :
index c70b127..d27be70 100644 (file)
@@ -69,7 +69,7 @@ struct bnxt_filter_info *bnxt_get_unused_filter(struct bnxt *bp);
 void bnxt_free_filter(struct bnxt *bp, struct bnxt_filter_info *filter);
 struct bnxt_filter_info *bnxt_get_l2_filter(struct bnxt *bp,
                struct bnxt_filter_info *nf, struct bnxt_vnic_info *vnic);
-int check_zero_bytes(const uint8_t *bytes, int len);
+int bnxt_check_zero_bytes(const uint8_t *bytes, int len);
 
 #define NTUPLE_FLTR_ALLOC_INPUT_EN_SRC_MACADDR \
        HWRM_CFA_NTUPLE_FILTER_ALLOC_INPUT_ENABLES_SRC_MACADDR