Skip to content

Commit ef46b37

Browse files
authored
Merge branch 'main' into feature/formatting-only-option
2 parents b5983b0 + a046b83 commit ef46b37

File tree

16 files changed

+26
-28
lines changed

16 files changed

+26
-28
lines changed

backends/p4tools/modules/testgen/targets/bmv2/test/BMV2PTFXfail.cmake

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,6 @@ p4tools_add_xfail_reason(
204204
p4tools_add_xfail_reason(
205205
"testgen-p4c-bmv2-ptf"
206206
"BMv2 target only supports headers with fields totaling a multiple of 8 bits"
207-
custom-type-restricted-fields.p4
208207
issue3225.p4
209208
)
210209

backends/p4tools/modules/testgen/targets/bmv2/test/BMV2STFXfail.cmake

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,6 @@ p4tools_add_xfail_reason(
188188
p4tools_add_xfail_reason(
189189
"testgen-p4c-bmv2-stf"
190190
"BMv2 target only supports headers with fields totaling a multiple of 8 bits"
191-
custom-type-restricted-fields.p4
192191
issue3225.p4
193192
)
194193

backends/tc/runtime/cleanup

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,9 @@ if ! [ -f "$RUNTIME_DIR/setup" ]; then
2121
exit 1
2222
fi
2323

24-
rm -rf $EXTRACT_DIR
25-
rm -f $RUNTIME_DIR/id_rsa
26-
rm -f $RUNTIME_DIR/id_rsa.pub
24+
rm -rf "$EXTRACT_DIR"
25+
rm -f "$RUNTIME_DIR/id_rsa"
26+
rm -f "$RUNTIME_DIR/id_rsa.pub"
2727
rm -f linux-image-*.deb
2828

2929
deluser ci --remove-home

backends/tofino/bf-asm/bflink

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -164,18 +164,18 @@ if [ -z "$output_dir" ]; then
164164
output_dir="./"
165165
fi
166166
if ! $debug_info; then
167-
rm -f $object_files
167+
rm -f "$object_files"
168168
fi
169169
if [ ! -z "$base_program" ] ; then
170170
pp=$output_dir/${base_program}.p4i
171-
if ! $debug_info && test -e $pp ; then rm -f $pp; fi
171+
if ! $debug_info && test -e "$pp" ; then rm -f "$pp"; fi
172172
fi
173-
if ! $debug_info && test -e $output_dir/bfas.config.log ; then
174-
rm -f $output_dir/bfas.config.log
173+
if ! $debug_info && test -e "$output_dir/bfas.config.log" ; then
174+
rm -f "$output_dir/bfas.config.log"
175175
fi
176176
# if we uncompressed, remove the directory
177177
if [ -d "$tmpdir" ]; then
178-
rm -rf $tmpdir
178+
rm -rf "$tmpdir"
179179
fi
180180

181181
# exit with a return code if walle failed

backends/tofino/bootstrap_bfn_env.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ while [ $# -gt 0 ]; do
3636
done
3737

3838
installdir="$topdir/install"
39-
rm -rf $installdir
39+
rm -rf "$installdir"
4040
mkdir -p $installdir
4141

4242
if [ $skip_os_deps = false ]; then
@@ -69,7 +69,7 @@ gitclone() {
6969
if [ ! -z $3 ]; then branch=$3; fi
7070
[ -e "$2" ] && die "$2 already exists!"
7171
[ ! -d "$(dirname $2)" ] && die "$(dirname $2) not a directory"
72-
git clone --recursive -b $branch $1 $2 || { rm -rf $2; die "can't clone $1"; }
72+
git clone --recursive -b $branch $1 $2 || { rm -rf "$2"; die "can't clone $1"; }
7373
}
7474

7575
echo "Using $topdir as top level directory for git repositories"
@@ -388,7 +388,7 @@ cd ..
388388
$SUDO rm -rf ptf
389389
popd # tmpdir
390390
echo "Removing $tmpdir"
391-
rm -rf $tmpdir
391+
rm -rf "$tmpdir"
392392

393393
if [ $(uname -s) == 'Linux' ]; then
394394
echo "Checking for huge pages"

backends/tofino/scripts/install_boost_static.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ function install_boost() {
5959
$SUDO ./b2 install --build-type=minimal variant=release \
6060
link=${boost_lib_type} runtime-link=${boost_lib_type} || \
6161
die "failed to install boost"
62-
cd /tmp && rm -rf boost_${boost_ver}
62+
cd /tmp && rm -rf "boost_${boost_ver}"
6363
fi
6464
}
6565

backends/tofino/scripts/p4c_build_for_arch.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ chmod 755 bootstrap.${arch}.sh
3333
cd $WORKSPACE/bf-p4c-compilers/
3434
./bootstrap.${arch}.sh --prefix $install_dir --exec-prefix=$install_dir/$arch
3535

36-
rm -f ./bootstrap.${arch}.sh p4c/bootstrap.${arch}.sh
36+
rm -f "./bootstrap.${arch}.sh" "p4c/bootstrap.${arch}.sh"
3737

3838
cd ${build_dir}
3939
make -j $parallel_make install

testdata/p4_16_samples/custom-type-restricted-fields.p4

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ header ethernet_t {
3838
header packet_out_t {
3939
bit<9> egress_port; /* suggested port where the packet
4040
should be sent */
41-
bit<8> queue_id; /* suggested queue ID */
41+
bit<7> queue_id; /* suggested queue ID */
4242
EthernetAddr_t not_actually_useful;
4343
}
4444

testdata/p4_16_samples_outputs/custom-type-restricted-fields-first.p4

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ header ethernet_t {
1313

1414
@controller_header("packet_out") header packet_out_t {
1515
bit<9> egress_port;
16-
bit<8> queue_id;
16+
bit<7> queue_id;
1717
EthernetAddr_t not_actually_useful;
1818
}
1919

testdata/p4_16_samples_outputs/custom-type-restricted-fields-frontend.p4

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ header ethernet_t {
1313

1414
@controller_header("packet_out") header packet_out_t {
1515
bit<9> egress_port;
16-
bit<8> queue_id;
16+
bit<7> queue_id;
1717
EthernetAddr_t not_actually_useful;
1818
}
1919

0 commit comments

Comments
 (0)