Skip to content

Commit 9c82193

Browse files
committed
debug
1 parent 16d3775 commit 9c82193

File tree

4 files changed

+17
-29
lines changed

4 files changed

+17
-29
lines changed

.github/workflows/build-and-test.yml

Lines changed: 3 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -575,12 +575,7 @@ jobs:
575575
run: ./.ci/osx-prepare.sh
576576
- name: build
577577
run: ./.ci/osx-build.sh
578-
- name: upload logs on failure
579-
if: failure()
580-
uses: actions/upload-artifact@v4
581-
with:
582-
name: logs-osx-clang---disable-ssl
583-
path: config.log
578+
584579

585580
build-linux-deb:
586581
env:
@@ -622,11 +617,7 @@ jobs:
622617
- name: build
623618
run: ./.ci/linux-build.sh
624619

625-
- name: upload deb packages
626-
uses: actions/upload-artifact@v4
627-
with:
628-
name: deb-packages-${{ matrix.dpdk }}-dpdk
629-
path: '/home/runner/work/ovs/*.deb'
620+
630621

631622
build-linux-rpm:
632623
name: linux rpm fedora
@@ -657,10 +648,4 @@ jobs:
657648
- name: install
658649
run: dnf install -y rpm/rpmbuild/RPMS/*/*.rpm
659650

660-
- name: upload rpm packages
661-
uses: actions/upload-artifact@v4
662-
with:
663-
name: rpm-packages
664-
path: |
665-
rpm/rpmbuild/SRPMS/*.rpm
666-
rpm/rpmbuild/RPMS/*/*.rpm
651+

lib/lldp/lldpd-structs.c

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -119,22 +119,25 @@ lldpd_dot13_lists_cleanup(struct lldpd_port *port)
119119
struct lldpd_ppvid *ppvid;
120120
struct lldpd_vlan *vlan;
121121
struct lldpd_pi *pid;
122-
if (port->p_vlans.next && !ovs_list_is_empty(&port->p_vlans)) {
122+
//if (port->p_vlans.next && !ovs_list_is_empty(&port->p_vlans)) {
123+
if (!ovs_list_is_empty(&port->p_vlans)) {
123124
LIST_FOR_EACH_SAFE (vlan, v_entries, &port->p_vlans) {
124125
ovs_list_remove(&vlan->v_entries);
125126
free(vlan->v_name);
126127
free(vlan);
127128
}
128129
ovs_list_init(&port->p_vlans);
129130
}
130-
if (port->p_ppvids.next && !ovs_list_is_empty(&port->p_ppvids)) {
131+
//if (port->p_ppvids.next && !ovs_list_is_empty(&port->p_ppvids)) {
132+
if (!ovs_list_is_empty(&port->p_ppvids)) {
131133
LIST_FOR_EACH_SAFE (ppvid, p_entries, &port->p_ppvids) {
132134
ovs_list_remove(&ppvid->p_entries);
133135
free(ppvid);
134136
}
135137
ovs_list_init(&port->p_ppvids);
136138
}
137-
if (port->p_pids.next && !ovs_list_is_empty(&port->p_pids)) {
139+
//if (port->p_pids.next && !ovs_list_is_empty(&port->p_pids)) {
140+
if (!ovs_list_is_empty(&port->p_pids)) {
138141
LIST_FOR_EACH_SAFE (pid, p_entries, &port->p_pids) {
139142
ovs_list_remove(&pid->p_entries);
140143
free(pid->p_pi);

lib/ovs-lldp.c

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -629,9 +629,9 @@ lldp_print_neighbor(struct ds *ds, struct lldp *lldp) OVS_REQUIRES(mutex)
629629
}
630630

631631
LIST_FOR_EACH (hw, h_entries, &lldp->lldpd->g_hardware) {
632-
if (!hw->h_rports.next) {
633-
continue;
634-
}
632+
//if (!hw->h_rports.next) {
633+
// continue;
634+
//}
635635

636636
LIST_FOR_EACH (port, p_entries, &hw->h_rports) {
637637
if (!port->p_chassis) {
@@ -758,9 +758,9 @@ lldp_print_neighbor_json(struct json *interface_json, struct lldp *lldp)
758758
bool has_multi_interfaces = false;
759759

760760
LIST_FOR_EACH (hw, h_entries, &lldp->lldpd->g_hardware) {
761-
if (!hw->h_rports.next) {
762-
continue;
763-
}
761+
// if (!hw->h_rports.next) {
762+
// continue;
763+
//}
764764
LIST_FOR_EACH (port, p_entries, &hw->h_rports) {
765765
struct json *chassis_mgmt_iface_json = json_array_create_empty();
766766
struct json *chassis_capability_json = json_array_create_empty();

tests/ovs-lldp.at

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@ AT_CHECK([
99
ovs-vsctl set Interface p1 type=dummy lldp:enable=true
1010
], [0])
1111

12-
AT_CHECK([ovs-appctl netdev-dummy/receive p1 \
12+
AT_CHECK([sleep 10 && ovs-appctl netdev-dummy/receive p1 \
1313
'0180c200000e38a91c18a12688cc020704aaaaaaaaaaaa0416054769676162697445746865726e6574312f302f313506020079081f4769676162697445746865726e6574312f302f313520496e746572666163650a0e46616b6553797374656d4e616d650c0e46616b6553797374656d446573630e0403140114100c0501c0a80001020000027b00fe060080c2010001fe070080c202020000fe100080c203000109564c414e2030303031fe060080c2060000fe090080c2070100000000fe0900120f01036c01001efe0c00120f0203010113000000fffe0600120f042800fe0900120f0301000000000000'])
1414

15-
AT_CHECK([ovs-appctl lldp/neighbor p1], [0], [dnl
15+
AT_CHECK([sleep 10 && ovs-appctl lldp/neighbor p1], [0], [dnl
1616
LLDP neighbor:
1717
Interface: p1
1818
Chassis ID: aa:aa:aa:aa:aa:aa

0 commit comments

Comments
 (0)