git: 5d57964698e8 - stable/13 - cxgbetool: remove unnecessary vertical whitespace.
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Thu, 02 Feb 2023 07:39:36 UTC
The branch stable/13 has been updated by np:
URL: https://cgit.FreeBSD.org/src/commit/?id=5d57964698e89fe45e75f2293b03fa96b69b89f0
commit 5d57964698e89fe45e75f2293b03fa96b69b89f0
Author: Navdeep Parhar <np@FreeBSD.org>
AuthorDate: 2022-08-19 19:46:32 +0000
Commit: Navdeep Parhar <np@FreeBSD.org>
CommitDate: 2023-02-02 07:16:38 +0000
cxgbetool: remove unnecessary vertical whitespace.
No functional change.
(cherry picked from commit f6cc21e8e14344ca698c19a2931c04867249dd60)
---
usr.sbin/cxgbetool/cxgbetool.c | 36 ------------------------------------
1 file changed, 36 deletions(-)
diff --git a/usr.sbin/cxgbetool/cxgbetool.c b/usr.sbin/cxgbetool/cxgbetool.c
index f93c28da8e16..43707df0b47a 100644
--- a/usr.sbin/cxgbetool/cxgbetool.c
+++ b/usr.sbin/cxgbetool/cxgbetool.c
@@ -544,46 +544,36 @@ do_show_info_header(uint32_t mode)
case T4_FILTER_FCoE:
printf(" FCoE");
break;
-
case T4_FILTER_PORT:
printf(" Port");
break;
-
case T4_FILTER_VNIC:
if (mode & T4_FILTER_IC_VNIC)
printf(" VFvld:PF:VF");
else
printf(" vld:oVLAN");
break;
-
case T4_FILTER_VLAN:
printf(" vld:VLAN");
break;
-
case T4_FILTER_IP_TOS:
printf(" TOS");
break;
-
case T4_FILTER_IP_PROTO:
printf(" Prot");
break;
-
case T4_FILTER_ETH_TYPE:
printf(" EthType");
break;
-
case T4_FILTER_MAC_IDX:
printf(" MACIdx");
break;
-
case T4_FILTER_MPS_HIT_TYPE:
printf(" MPS");
break;
-
case T4_FILTER_IP_FRAGMENT:
printf(" Frag");
break;
-
default:
/* compressed filter field not enabled */
break;
@@ -825,11 +815,9 @@ do_show_one_filter_info(struct t4_filter *t, uint32_t mode)
case T4_FILTER_FCoE:
printf(" %1d/%1d", t->fs.val.fcoe, t->fs.mask.fcoe);
break;
-
case T4_FILTER_PORT:
printf(" %1d/%1d", t->fs.val.iport, t->fs.mask.iport);
break;
-
case T4_FILTER_VNIC:
if (mode & T4_FILTER_IC_VNIC) {
printf(" %1d:%1x:%02x/%1d:%1x:%02x",
@@ -845,40 +833,32 @@ do_show_one_filter_info(struct t4_filter *t, uint32_t mode)
t->fs.mask.ovlan_vld, t->fs.mask.vnic);
}
break;
-
case T4_FILTER_VLAN:
printf(" %1d:%04x/%1d:%04x",
t->fs.val.vlan_vld, t->fs.val.vlan,
t->fs.mask.vlan_vld, t->fs.mask.vlan);
break;
-
case T4_FILTER_IP_TOS:
printf(" %02x/%02x", t->fs.val.tos, t->fs.mask.tos);
break;
-
case T4_FILTER_IP_PROTO:
printf(" %02x/%02x", t->fs.val.proto, t->fs.mask.proto);
break;
-
case T4_FILTER_ETH_TYPE:
printf(" %04x/%04x", t->fs.val.ethtype,
t->fs.mask.ethtype);
break;
-
case T4_FILTER_MAC_IDX:
printf(" %03x/%03x", t->fs.val.macidx,
t->fs.mask.macidx);
break;
-
case T4_FILTER_MPS_HIT_TYPE:
printf(" %1x/%1x", t->fs.val.matchtype,
t->fs.mask.matchtype);
break;
-
case T4_FILTER_IP_FRAGMENT:
printf(" %1d/%1d", t->fs.val.frag, t->fs.mask.frag);
break;
-
default:
/* compressed filter field not enabled */
break;
@@ -1010,43 +990,30 @@ get_filter_mode(int hashfilter)
if (mode & T4_FILTER_IPv4)
printf("ipv4 ");
-
if (mode & T4_FILTER_IPv6)
printf("ipv6 ");
-
if (mode & T4_FILTER_IP_SADDR)
printf("sip ");
-
if (mode & T4_FILTER_IP_DADDR)
printf("dip ");
-
if (mode & T4_FILTER_IP_SPORT)
printf("sport ");
-
if (mode & T4_FILTER_IP_DPORT)
printf("dport ");
-
if (mode & T4_FILTER_IP_FRAGMENT)
printf("frag ");
-
if (mode & T4_FILTER_MPS_HIT_TYPE)
printf("matchtype ");
-
if (mode & T4_FILTER_MAC_IDX)
printf("macidx ");
-
if (mode & T4_FILTER_ETH_TYPE)
printf("ethtype ");
-
if (mode & T4_FILTER_IP_PROTO)
printf("proto ");
-
if (mode & T4_FILTER_IP_TOS)
printf("tos ");
-
if (mode & T4_FILTER_VLAN)
printf("vlan ");
-
if (mode & T4_FILTER_VNIC) {
if (mode & T4_FILTER_IC_VNIC)
printf("vnic_id ");
@@ -1055,13 +1022,10 @@ get_filter_mode(int hashfilter)
else
printf("ovlan ");
}
-
if (mode & T4_FILTER_PORT)
printf("iport ");
-
if (mode & T4_FILTER_FCoE)
printf("fcoe ");
-
printf("\n");
return (0);