cxgbetool: remove unnecessary vertical whitespace.
No functional change. MFC after: 3 days
This commit is contained in:
parent
c94f30ea85
commit
f6cc21e8e1
@ -544,46 +544,36 @@ do_show_info_header(uint32_t mode)
|
|||||||
case T4_FILTER_FCoE:
|
case T4_FILTER_FCoE:
|
||||||
printf(" FCoE");
|
printf(" FCoE");
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case T4_FILTER_PORT:
|
case T4_FILTER_PORT:
|
||||||
printf(" Port");
|
printf(" Port");
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case T4_FILTER_VNIC:
|
case T4_FILTER_VNIC:
|
||||||
if (mode & T4_FILTER_IC_VNIC)
|
if (mode & T4_FILTER_IC_VNIC)
|
||||||
printf(" VFvld:PF:VF");
|
printf(" VFvld:PF:VF");
|
||||||
else
|
else
|
||||||
printf(" vld:oVLAN");
|
printf(" vld:oVLAN");
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case T4_FILTER_VLAN:
|
case T4_FILTER_VLAN:
|
||||||
printf(" vld:VLAN");
|
printf(" vld:VLAN");
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case T4_FILTER_IP_TOS:
|
case T4_FILTER_IP_TOS:
|
||||||
printf(" TOS");
|
printf(" TOS");
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case T4_FILTER_IP_PROTO:
|
case T4_FILTER_IP_PROTO:
|
||||||
printf(" Prot");
|
printf(" Prot");
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case T4_FILTER_ETH_TYPE:
|
case T4_FILTER_ETH_TYPE:
|
||||||
printf(" EthType");
|
printf(" EthType");
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case T4_FILTER_MAC_IDX:
|
case T4_FILTER_MAC_IDX:
|
||||||
printf(" MACIdx");
|
printf(" MACIdx");
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case T4_FILTER_MPS_HIT_TYPE:
|
case T4_FILTER_MPS_HIT_TYPE:
|
||||||
printf(" MPS");
|
printf(" MPS");
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case T4_FILTER_IP_FRAGMENT:
|
case T4_FILTER_IP_FRAGMENT:
|
||||||
printf(" Frag");
|
printf(" Frag");
|
||||||
break;
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
/* compressed filter field not enabled */
|
/* compressed filter field not enabled */
|
||||||
break;
|
break;
|
||||||
@ -825,11 +815,9 @@ do_show_one_filter_info(struct t4_filter *t, uint32_t mode)
|
|||||||
case T4_FILTER_FCoE:
|
case T4_FILTER_FCoE:
|
||||||
printf(" %1d/%1d", t->fs.val.fcoe, t->fs.mask.fcoe);
|
printf(" %1d/%1d", t->fs.val.fcoe, t->fs.mask.fcoe);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case T4_FILTER_PORT:
|
case T4_FILTER_PORT:
|
||||||
printf(" %1d/%1d", t->fs.val.iport, t->fs.mask.iport);
|
printf(" %1d/%1d", t->fs.val.iport, t->fs.mask.iport);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case T4_FILTER_VNIC:
|
case T4_FILTER_VNIC:
|
||||||
if (mode & T4_FILTER_IC_VNIC) {
|
if (mode & T4_FILTER_IC_VNIC) {
|
||||||
printf(" %1d:%1x:%02x/%1d:%1x:%02x",
|
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);
|
t->fs.mask.ovlan_vld, t->fs.mask.vnic);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case T4_FILTER_VLAN:
|
case T4_FILTER_VLAN:
|
||||||
printf(" %1d:%04x/%1d:%04x",
|
printf(" %1d:%04x/%1d:%04x",
|
||||||
t->fs.val.vlan_vld, t->fs.val.vlan,
|
t->fs.val.vlan_vld, t->fs.val.vlan,
|
||||||
t->fs.mask.vlan_vld, t->fs.mask.vlan);
|
t->fs.mask.vlan_vld, t->fs.mask.vlan);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case T4_FILTER_IP_TOS:
|
case T4_FILTER_IP_TOS:
|
||||||
printf(" %02x/%02x", t->fs.val.tos, t->fs.mask.tos);
|
printf(" %02x/%02x", t->fs.val.tos, t->fs.mask.tos);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case T4_FILTER_IP_PROTO:
|
case T4_FILTER_IP_PROTO:
|
||||||
printf(" %02x/%02x", t->fs.val.proto, t->fs.mask.proto);
|
printf(" %02x/%02x", t->fs.val.proto, t->fs.mask.proto);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case T4_FILTER_ETH_TYPE:
|
case T4_FILTER_ETH_TYPE:
|
||||||
printf(" %04x/%04x", t->fs.val.ethtype,
|
printf(" %04x/%04x", t->fs.val.ethtype,
|
||||||
t->fs.mask.ethtype);
|
t->fs.mask.ethtype);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case T4_FILTER_MAC_IDX:
|
case T4_FILTER_MAC_IDX:
|
||||||
printf(" %03x/%03x", t->fs.val.macidx,
|
printf(" %03x/%03x", t->fs.val.macidx,
|
||||||
t->fs.mask.macidx);
|
t->fs.mask.macidx);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case T4_FILTER_MPS_HIT_TYPE:
|
case T4_FILTER_MPS_HIT_TYPE:
|
||||||
printf(" %1x/%1x", t->fs.val.matchtype,
|
printf(" %1x/%1x", t->fs.val.matchtype,
|
||||||
t->fs.mask.matchtype);
|
t->fs.mask.matchtype);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case T4_FILTER_IP_FRAGMENT:
|
case T4_FILTER_IP_FRAGMENT:
|
||||||
printf(" %1d/%1d", t->fs.val.frag, t->fs.mask.frag);
|
printf(" %1d/%1d", t->fs.val.frag, t->fs.mask.frag);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
/* compressed filter field not enabled */
|
/* compressed filter field not enabled */
|
||||||
break;
|
break;
|
||||||
@ -1010,43 +990,30 @@ get_filter_mode(int hashfilter)
|
|||||||
|
|
||||||
if (mode & T4_FILTER_IPv4)
|
if (mode & T4_FILTER_IPv4)
|
||||||
printf("ipv4 ");
|
printf("ipv4 ");
|
||||||
|
|
||||||
if (mode & T4_FILTER_IPv6)
|
if (mode & T4_FILTER_IPv6)
|
||||||
printf("ipv6 ");
|
printf("ipv6 ");
|
||||||
|
|
||||||
if (mode & T4_FILTER_IP_SADDR)
|
if (mode & T4_FILTER_IP_SADDR)
|
||||||
printf("sip ");
|
printf("sip ");
|
||||||
|
|
||||||
if (mode & T4_FILTER_IP_DADDR)
|
if (mode & T4_FILTER_IP_DADDR)
|
||||||
printf("dip ");
|
printf("dip ");
|
||||||
|
|
||||||
if (mode & T4_FILTER_IP_SPORT)
|
if (mode & T4_FILTER_IP_SPORT)
|
||||||
printf("sport ");
|
printf("sport ");
|
||||||
|
|
||||||
if (mode & T4_FILTER_IP_DPORT)
|
if (mode & T4_FILTER_IP_DPORT)
|
||||||
printf("dport ");
|
printf("dport ");
|
||||||
|
|
||||||
if (mode & T4_FILTER_IP_FRAGMENT)
|
if (mode & T4_FILTER_IP_FRAGMENT)
|
||||||
printf("frag ");
|
printf("frag ");
|
||||||
|
|
||||||
if (mode & T4_FILTER_MPS_HIT_TYPE)
|
if (mode & T4_FILTER_MPS_HIT_TYPE)
|
||||||
printf("matchtype ");
|
printf("matchtype ");
|
||||||
|
|
||||||
if (mode & T4_FILTER_MAC_IDX)
|
if (mode & T4_FILTER_MAC_IDX)
|
||||||
printf("macidx ");
|
printf("macidx ");
|
||||||
|
|
||||||
if (mode & T4_FILTER_ETH_TYPE)
|
if (mode & T4_FILTER_ETH_TYPE)
|
||||||
printf("ethtype ");
|
printf("ethtype ");
|
||||||
|
|
||||||
if (mode & T4_FILTER_IP_PROTO)
|
if (mode & T4_FILTER_IP_PROTO)
|
||||||
printf("proto ");
|
printf("proto ");
|
||||||
|
|
||||||
if (mode & T4_FILTER_IP_TOS)
|
if (mode & T4_FILTER_IP_TOS)
|
||||||
printf("tos ");
|
printf("tos ");
|
||||||
|
|
||||||
if (mode & T4_FILTER_VLAN)
|
if (mode & T4_FILTER_VLAN)
|
||||||
printf("vlan ");
|
printf("vlan ");
|
||||||
|
|
||||||
if (mode & T4_FILTER_VNIC) {
|
if (mode & T4_FILTER_VNIC) {
|
||||||
if (mode & T4_FILTER_IC_VNIC)
|
if (mode & T4_FILTER_IC_VNIC)
|
||||||
printf("vnic_id ");
|
printf("vnic_id ");
|
||||||
@ -1055,13 +1022,10 @@ get_filter_mode(int hashfilter)
|
|||||||
else
|
else
|
||||||
printf("ovlan ");
|
printf("ovlan ");
|
||||||
}
|
}
|
||||||
|
|
||||||
if (mode & T4_FILTER_PORT)
|
if (mode & T4_FILTER_PORT)
|
||||||
printf("iport ");
|
printf("iport ");
|
||||||
|
|
||||||
if (mode & T4_FILTER_FCoE)
|
if (mode & T4_FILTER_FCoE)
|
||||||
printf("fcoe ");
|
printf("fcoe ");
|
||||||
|
|
||||||
printf("\n");
|
printf("\n");
|
||||||
|
|
||||||
return (0);
|
return (0);
|
||||||
|
Loading…
Reference in New Issue
Block a user