* [dpdk-test-report] |WARNING| pw29364 [PATCH v3 18/24] net/bnxt: add support for flow filter ops
[not found] <20170928141329.73874-19-ajit.khaparde@broadcom.com>
@ 2017-09-28 14:20 ` checkpatch
0 siblings, 0 replies; only message in thread
From: checkpatch @ 2017-09-28 14:20 UTC (permalink / raw)
To: test-report; +Cc: Ajit Khaparde
Test-Label: checkpatch
Test-Status: WARNING
http://dpdk.org/patch/29364
_coding style issues_
CHECK:CAMELCASE: Avoid CamelCase: <ETHER_TYPE_IPv4>
#150: FILE: drivers/net/bnxt/bnxt_ethdev.c:1662:
+ if (efilter->ether_type != ETHER_TYPE_IPv4 &&
CHECK:CAMELCASE: Avoid CamelCase: <ETHER_TYPE_IPv6>
#151: FILE: drivers/net/bnxt/bnxt_ethdev.c:1663:
+ efilter->ether_type != ETHER_TYPE_IPv6) {
CHECK:UNNECESSARY_PARENTHESES: Unnecessary parentheses around 'mfilter->flags ==
HWRM_CFA_NTUPLE_FILTER_ALLOC_INPUT_FLAGS_DROP'
#170: FILE: drivers/net/bnxt/bnxt_ethdev.c:1682:
+ if ((!memcmp(efilter->mac_addr.addr_bytes,
+ mfilter->l2_addr, ETHER_ADDR_LEN) &&
+ (mfilter->flags ==
+ HWRM_CFA_NTUPLE_FILTER_ALLOC_INPUT_FLAGS_DROP) &&
+ (mfilter->ethertype == efilter->ether_type))) {
CHECK:UNNECESSARY_PARENTHESES: Unnecessary parentheses around 'mfilter->ethertype == efilter->ether_type'
#170: FILE: drivers/net/bnxt/bnxt_ethdev.c:1682:
+ if ((!memcmp(efilter->mac_addr.addr_bytes,
+ mfilter->l2_addr, ETHER_ADDR_LEN) &&
+ (mfilter->flags ==
+ HWRM_CFA_NTUPLE_FILTER_ALLOC_INPUT_FLAGS_DROP) &&
+ (mfilter->ethertype == efilter->ether_type))) {
CHECK:UNNECESSARY_PARENTHESES: Unnecessary parentheses around 'mfilter->ethertype == efilter->ether_type'
#181: FILE: drivers/net/bnxt/bnxt_ethdev.c:1693:
+ if ((!memcmp(efilter->mac_addr.addr_bytes,
+ mfilter->l2_addr, ETHER_ADDR_LEN) &&
+ (mfilter->ethertype == efilter->ether_type) &&
+ (mfilter->flags ==
+ HWRM_CFA_L2_FILTER_CFG_INPUT_FLAGS_PATH_RX))) {
CHECK:UNNECESSARY_PARENTHESES: Unnecessary parentheses around 'mfilter->flags ==
HWRM_CFA_L2_FILTER_CFG_INPUT_FLAGS_PATH_RX'
#181: FILE: drivers/net/bnxt/bnxt_ethdev.c:1693:
+ if ((!memcmp(efilter->mac_addr.addr_bytes,
+ mfilter->l2_addr, ETHER_ADDR_LEN) &&
+ (mfilter->ethertype == efilter->ether_type) &&
+ (mfilter->flags ==
+ HWRM_CFA_L2_FILTER_CFG_INPUT_FLAGS_PATH_RX))) {
CHECK:UNNECESSARY_PARENTHESES: Unnecessary parentheses around 'vxlan_spec->flags != 0x8'
#808: FILE: drivers/net/bnxt/bnxt_filter.c:613:
+ if (vxlan_spec->rsvd1 || vxlan_spec->rsvd0[0] ||
+ vxlan_spec->rsvd0[1] || vxlan_spec->rsvd0[2] ||
+ (vxlan_spec->flags != 0x8)) {
CHECK:UNNECESSARY_PARENTHESES: Unnecessary parentheses around 'nvgre_spec->c_k_s_rsvd0_ver != 0x2000'
#857: FILE: drivers/net/bnxt/bnxt_filter.c:662:
+ if ((nvgre_spec->c_k_s_rsvd0_ver != 0x2000) ||
+ (nvgre_spec->protocol != 0x6558)) {
CHECK:UNNECESSARY_PARENTHESES: Unnecessary parentheses around 'nvgre_spec->protocol != 0x6558'
#857: FILE: drivers/net/bnxt/bnxt_filter.c:662:
+ if ((nvgre_spec->c_k_s_rsvd0_ver != 0x2000) ||
+ (nvgre_spec->protocol != 0x6558)) {
total: 0 errors, 0 warnings, 9 checks, 1698 lines checked
^ permalink raw reply [flat|nested] only message in thread