Replace multiple whitespaces with tab where appropriate.
While at it, fix tc flower help message and remove some double
whitespaces.
Signed-off-by: Andrea Claudi <aclaudi@redhat.com>
Reviewed-by: Ido Schimmel <idosch@nvidia.com>
Tested-by: Ido Schimmel <idosch@nvidia.com>
Signed-off-by: David Ahern <dsahern@kernel.org>
fprintf(stderr,
"Usage: bridge vni { add | del } vni VNI\n"
" [ { group | remote } IP_ADDRESS ]\n"
- " [ dev DEV ]\n"
+ " [ dev DEV ]\n"
" bridge vni { show }\n"
"\n"
"Where: VNI := 0-16777215\n"
rtnl_dump_filter(&rth, print_ctrl2, stdout);
- }
+ }
ret = 0;
ctrl_done:
if (strcmp(flag_name, ifa_flag_data[i].name) == 0)
return &ifa_flag_data[i];
}
- return NULL;
+ return NULL;
}
static void print_ifa_flags(FILE *fp, const struct ifaddrmsg *ifa,
if (strcmp(*argv, "default") == 0)
cipher.id = MACSEC_DEFAULT_CIPHER_ID;
else if (strcmp(*argv, "gcm-aes-128") == 0 ||
- strcmp(*argv, "GCM-AES-128") == 0)
+ strcmp(*argv, "GCM-AES-128") == 0)
cipher.id = MACSEC_CIPHER_ID_GCM_AES_128;
else if (strcmp(*argv, "gcm-aes-256") == 0 ||
- strcmp(*argv, "GCM-AES-256") == 0)
+ strcmp(*argv, "GCM-AES-256") == 0)
cipher.id = MACSEC_CIPHER_ID_GCM_AES_256;
else if (strcmp(*argv, "gcm-aes-xpn-128") == 0 ||
strcmp(*argv, "GCM-AES-XPN-128") == 0)
if (tb[PREFIX_ADDRESS]) {
fprintf(fp, "prefix %s/%u",
- rt_addr_n2a_rta(family, tb[PREFIX_ADDRESS]),
+ rt_addr_n2a_rta(family, tb[PREFIX_ADDRESS]),
prefix->prefix_len);
}
fprintf(fp, "dev %s ", ll_index_to_name(prefix->prefix_ifindex));
};
return bpf_program_load(BPF_PROG_TYPE_CGROUP_SOCK, prog, sizeof(prog),
- "GPL", bpf_log_buf, sizeof(bpf_log_buf));
+ "GPL", bpf_log_buf, sizeof(bpf_log_buf));
}
static int vrf_configure_cgroup(const char *path, int ifindex)
struct file_handle *handle, int *mount_id, int flags)
{
return syscall(__NR_name_to_handle_at, dirfd, pathname, handle,
- mount_id, flags);
+ mount_id, flags);
}
static int open_by_handle_at(int mount_fd, struct file_handle *handle, int flags)
#undef __PF
unsigned int i;
- for (i = 0; !numeric && i < ARRAY_SIZE(arphrd_names); i++) {
- if (arphrd_names[i].type == type)
+ for (i = 0; !numeric && i < ARRAY_SIZE(arphrd_names); i++) {
+ if (arphrd_names[i].type == type)
return arphrd_names[i].name;
}
- snprintf(buf, len, "[%d]", type);
- return buf;
+ snprintf(buf, len, "[%d]", type);
+ return buf;
}
static void dev_print_dev_proto(struct rd *rd, struct nlattr **tb)
{
- const char *str;
+ const char *str;
- if (!tb[RDMA_NLDEV_ATTR_DEV_PROTOCOL])
- return;
+ if (!tb[RDMA_NLDEV_ATTR_DEV_PROTOCOL])
+ return;
- str = mnl_attr_get_str(tb[RDMA_NLDEV_ATTR_DEV_PROTOCOL]);
- print_color_string(PRINT_ANY, COLOR_NONE, "protocol", "protocol %s ", str);
+ str = mnl_attr_get_str(tb[RDMA_NLDEV_ATTR_DEV_PROTOCOL]);
+ print_color_string(PRINT_ANY, COLOR_NONE, "protocol", "protocol %s ", str);
}
static int dev_parse_cb(const struct nlmsghdr *nlh, void *data)
" cvlan_prio PRIORITY |\n"
" cvlan_ethtype [ ipv4 | ipv6 | ETH-TYPE ] |\n"
" pppoe_sid PSID |\n"
- " ppp_proto [ ipv4 | ipv6 | mpls_uc | mpls_mc | PPP_PROTO ]"
+ " ppp_proto [ ipv4 | ipv6 | mpls_uc | mpls_mc | PPP_PROTO ] |\n"
" dst_mac MASKED-LLADDR |\n"
" src_mac MASKED-LLADDR |\n"
" ip_proto [tcp | udp | sctp | icmp | icmpv6 | l2tp | IP-PROTO ] |\n"
" enc_ttl MASKED-IP_TTL |\n"
" geneve_opts MASKED-OPTIONS |\n"
" vxlan_opts MASKED-OPTIONS |\n"
- " erspan_opts MASKED-OPTIONS |\n"
+ " erspan_opts MASKED-OPTIONS |\n"
" gtp_opts MASKED-OPTIONS |\n"
" ip_flags IP-FLAGS |\n"
" enc_dst_port [ port_number ] |\n"
optind = 0;
free_opts(opts);
/* Clear flags if target will be used again */
- m->tflags = 0;
- m->used = 0;
+ m->tflags = 0;
+ m->used = 0;
/* Free allocated memory */
free(m->t);
optind = 0;
free_opts(opts);
/* Clear flags if target will be used again */
- m->tflags = 0;
- m->used = 0;
+ m->tflags = 0;
+ m->used = 0;
/* Free allocated memory */
free(m->t);
fprintf(stderr,
"Usage: ... fq [ limit PACKETS ] [ flow_limit PACKETS ]\n"
" [ quantum BYTES ] [ initial_quantum BYTES ]\n"
- " [ maxrate RATE ] [ buckets NUMBER ]\n"
+ " [ maxrate RATE ] [ buckets NUMBER ]\n"
" [ [no]pacing ] [ refill_delay TIME ]\n"
" [ low_rate_threshold RATE ]\n"
" [ orphan_mask MASK]\n"
if (set_ce_threshold)
addattr_l(n, 1024, TCA_FQ_CE_THRESHOLD,
&ce_threshold, sizeof(ce_threshold));
- if (set_timer_slack)
+ if (set_timer_slack)
addattr_l(n, 1024, TCA_FQ_TIMER_SLACK,
&timer_slack, sizeof(timer_slack));
- if (set_horizon)
+ if (set_horizon)
addattr_l(n, 1024, TCA_FQ_HORIZON,
&horizon, sizeof(horizon));
- if (horizon_drop != 255)
+ if (horizon_drop != 255)
addattr_l(n, 1024, TCA_FQ_HORIZON_DROP,
&horizon_drop, sizeof(horizon_drop));
addattr_nest_end(n, tail);
static void explain1(char *arg)
{
- fprintf(stderr, "Illegal \"%s\"\n", arg);
- explain();
+ fprintf(stderr, "Illegal \"%s\"\n", arg);
+ explain();
}
static int htb_parse_opt(struct qdisc_util *qu, int argc,
rtab[i] = tc_calc_xmittime(bps, sz);
}
- r->cell_align = -1;
+ r->cell_align = -1;
r->cell_log = cell_log;
r->linklayer = (linklayer & TC_LINKLAYER_MASK);
return cell_log;