Lines Matching +full:device +full:- +full:handle
4 tdc_batch.py - a script to generate TC batch file
12 parser.add_argument("device", help="device name")
14 parser.add_argument("-n", "--number", type=int,
17 "-a",
18 "--handle_start",
21 help="start handle range from (default: 1)")
22 parser.add_argument("-o", "--skip_sw",
25 parser.add_argument("-s", "--share_action",
28 parser.add_argument("-p", "--prio",
32 "-e",
33 "--operation",
39 "-m",
40 "--mac_prefix",
48 device = args.device variable
73 def format_add_filter(device, prio, handle, skip, src_mac, dst_mac, argument
75 return ("filter add dev {} {} protocol ip ingress handle {} "
77 device, prio, handle, skip, src_mac, dst_mac, share_action))
80 def format_rep_filter(device, prio, handle, skip, src_mac, dst_mac, argument
82 return ("filter replace dev {} {} protocol ip ingress handle {} "
84 device, prio, handle, skip, src_mac, dst_mac, share_action))
87 def format_del_filter(device, prio, handle, skip, src_mac, dst_mac, argument
89 return ("filter del dev {} {} protocol ip ingress handle {} "
90 "flower".format(device, prio, handle))
106 cmd = formatter(device, prio, handle_start + index, skip, src_mac,