Skip to content

Commit

Permalink
ovs: Bump submodule to branch-3.2
Browse files Browse the repository at this point in the history
Bump submodule to branch-3.2 mainly for:
759a29dc2d97 ("backtrace: Extend the backtrace functionality.")
1d78a3f3164a ("netdev-dpdk: Disable net/tap Tx L4 checksum offloads.")

Unfortunately we cannot use the tag because we need
the DPDK offload fix, which was merged later on.

At the same time fix three issues caused by the bump.

Remove our custom 'struct sctp_chunk_header' that was added
to packets.h as part of:
501f665a5a4b ("conntrack: Extract l4 information for SCTP.")

Adjust "daemonize_start" to accept two parameters
and set the second to false, as we don't need access
to DPDK devices directly at this moment. This was introduced
by commit:
07cf5810de8d ("dpdk: Allow retaining CAP_SYS_RAWIO privileges.")

Adjust the path for OvS python helpers, introduced by:
bb0dd1135ba9 ("python: Rename build related code to ovs_build_helpers.")

Reported-at: https://bugzilla.redhat.com/2164058
Signed-off-by: Ales Musil <amusil@redhat.com>
Acked-by: Mark Michelson <mmichels@redhat.com>
Signed-off-by: Mark Michelson <mmichels@redhat.com>
  • Loading branch information
almusil authored and putnopvut committed Sep 1, 2023
1 parent 5b6a7ad commit 558da0c
Show file tree
Hide file tree
Showing 13 changed files with 22 additions and 29 deletions.
2 changes: 1 addition & 1 deletion Makefile.am
Expand Up @@ -430,7 +430,7 @@ endif
CLEANFILES += flake8-check

include $(srcdir)/manpages.mk
$(srcdir)/manpages.mk: $(MAN_ROOTS) build-aux/sodepends.py $(OVS_SRCDIR)/python/build/soutil.py
$(srcdir)/manpages.mk: $(MAN_ROOTS) build-aux/sodepends.py $(OVS_SRCDIR)/python/ovs_build_helpers/soutil.py
@PYTHONPATH=$(OVS_SRCDIR)/python$(psep)$$PYTHONPATH$(psep)$(srcdir)/python $(PYTHON3) $(srcdir)/build-aux/sodepends.py -I. -Isrcdir,$(srcdir) -IOVS_MANDIR,$(OVS_MANDIR) $(MAN_ROOTS) >$(@F).tmp
@if cmp -s $(@F).tmp $@; then \
touch $@; \
Expand Down
2 changes: 1 addition & 1 deletion build-aux/sodepends.py
Expand Up @@ -14,7 +14,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.

from build import soutil
from ovs_build_helpers import soutil
import sys
import getopt
import os
Expand Down
2 changes: 1 addition & 1 deletion build-aux/soexpand.py
Expand Up @@ -14,7 +14,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.

from build import soutil
from ovs_build_helpers import soutil
import sys


Expand Down
14 changes: 7 additions & 7 deletions build-aux/xml2nroff
Expand Up @@ -18,7 +18,7 @@ import getopt
import sys
import xml.dom.minidom

import build.nroff
from ovs_build_helpers import nroff

argv0 = sys.argv[0]

Expand Down Expand Up @@ -94,12 +94,12 @@ def manpage_to_nroff(xml_file, subst, include_path, version=None):
. PP
. I "\\$1"
..
''' % (build.nroff.text_to_nroff(program),
build.nroff.text_to_nroff(section),
build.nroff.text_to_nroff(title),
build.nroff.text_to_nroff(version))
''' % (nroff.text_to_nroff(program),
nroff.text_to_nroff(section),
nroff.text_to_nroff(title),
nroff.text_to_nroff(version))

s += build.nroff.block_xml_to_nroff(doc.childNodes) + "\n"
s += nroff.block_xml_to_nroff(doc.childNodes) + "\n"

return s

Expand Down Expand Up @@ -145,7 +145,7 @@ if __name__ == "__main__":

try:
s = manpage_to_nroff(args[0], subst, include_path, version)
except build.nroff.error.Error as e:
except nroff.error.Error as e:
sys.stderr.write("%s: %s\n" % (argv0, e.msg))
sys.exit(1)
for line in s.splitlines():
Expand Down
2 changes: 1 addition & 1 deletion controller-vtep/ovn-controller-vtep.c
Expand Up @@ -116,7 +116,7 @@ main(int argc, char *argv[])
parse_options(argc, argv);
fatal_ignore_sigpipe();

daemonize_start(false);
daemonize_start(false, false);

char *abs_unixctl_path = get_abs_unix_ctl_path(NULL);
retval = unixctl_server_create(abs_unixctl_path, &unixctl);
Expand Down
2 changes: 1 addition & 1 deletion controller/ovn-controller.c
Expand Up @@ -4988,7 +4988,7 @@ main(int argc, char *argv[])
char *ovs_remote = parse_options(argc, argv);
fatal_ignore_sigpipe();

daemonize_start(true);
daemonize_start(true, false);

char *abs_unixctl_path = get_abs_unix_ctl_path(NULL);
retval = unixctl_server_create(abs_unixctl_path, &unixctl);
Expand Down
10 changes: 5 additions & 5 deletions controller/pinctrl.c
Expand Up @@ -1765,14 +1765,14 @@ pinctrl_handle_sctp_abort(struct rconn *swconn, const struct flow *ip_flow,
return;
}

if (sh_in_chunk->sctp_chunk_type == SCTP_CHUNK_TYPE_ABORT) {
if (sh_in_chunk->type == SCTP_CHUNK_TYPE_ABORT) {
static struct vlog_rate_limit rl = VLOG_RATE_LIMIT_INIT(1, 5);
VLOG_WARN_RL(&rl, "sctp_abort action on incoming SCTP ABORT.");
return;
}

const struct sctp_16aligned_init_chunk *sh_in_init = NULL;
if (sh_in_chunk->sctp_chunk_type == SCTP_CHUNK_TYPE_INIT) {
if (sh_in_chunk->type == SCTP_CHUNK_TYPE_INIT) {
static struct vlog_rate_limit rl = VLOG_RATE_LIMIT_INIT(1, 5);
sh_in_init = dp_packet_at(pkt_in, pkt_in->l4_ofs +
SCTP_HEADER_LEN +
Expand Down Expand Up @@ -1828,9 +1828,9 @@ pinctrl_handle_sctp_abort(struct rconn *swconn, const struct flow *ip_flow,

struct sctp_chunk_header *ah =
ALIGNED_CAST(struct sctp_chunk_header *, sh + 1);
ah->sctp_chunk_type = SCTP_CHUNK_TYPE_ABORT;
ah->sctp_chunk_flags = tag_reflected ? SCTP_ABORT_CHUNK_FLAG_T : 0,
ah->sctp_chunk_len = htons(SCTP_CHUNK_HEADER_LEN),
ah->type = SCTP_CHUNK_TYPE_ABORT;
ah->flags = tag_reflected ? SCTP_ABORT_CHUNK_FLAG_T : 0,
ah->length = htons(SCTP_CHUNK_HEADER_LEN),

put_16aligned_be32(&sh->sctp_csum, crc32c((void *) sh,
dp_packet_l4_size(&packet)));
Expand Down
2 changes: 1 addition & 1 deletion ic/ovn-ic.c
Expand Up @@ -1917,7 +1917,7 @@ main(int argc, char *argv[])
service_start(&argc, &argv);
parse_options(argc, argv);

daemonize_start(false);
daemonize_start(false, false);

char *abs_unixctl_path = get_abs_unix_ctl_path(unixctl_path);
retval = unixctl_server_create(abs_unixctl_path, &unixctl);
Expand Down
7 changes: 0 additions & 7 deletions lib/ovn-util.h
Expand Up @@ -285,13 +285,6 @@ char *ovn_get_internal_version(void);
* packets.h file. For the time being, they live here because OVN uses them
* and OVS does not.
*/
#define SCTP_CHUNK_HEADER_LEN 4
struct sctp_chunk_header {
uint8_t sctp_chunk_type;
uint8_t sctp_chunk_flags;
ovs_be16 sctp_chunk_len;
};
BUILD_ASSERT_DECL(SCTP_CHUNK_HEADER_LEN == sizeof(struct sctp_chunk_header));

#define SCTP_INIT_CHUNK_LEN 16
struct sctp_16aligned_init_chunk {
Expand Down
2 changes: 1 addition & 1 deletion northd/ovn-northd.c
Expand Up @@ -765,7 +765,7 @@ main(int argc, char *argv[])
service_start(&argc, &argv);
parse_options(argc, argv, &state.paused, &n_threads);

daemonize_start(false);
daemonize_start(false, false);

char *abs_unixctl_path = get_abs_unix_ctl_path(unixctl_path);
retval = unixctl_server_create(abs_unixctl_path, &unixctl);
Expand Down
2 changes: 1 addition & 1 deletion ovs
Submodule ovs updated 258 files
2 changes: 1 addition & 1 deletion utilities/ovn-dbctl.c
Expand Up @@ -1112,7 +1112,7 @@ server_loop(const struct ovn_dbctl_options *dbctl_options,
bool exiting = false;

service_start(&argc, &argv);
daemonize_start(false);
daemonize_start(false, false);

char *abs_unixctl_path = get_abs_unix_ctl_path(unixctl_path);
int error = unixctl_server_create(abs_unixctl_path, &server);
Expand Down
2 changes: 1 addition & 1 deletion utilities/ovn-trace.c
Expand Up @@ -127,7 +127,7 @@ main(int argc, char *argv[])
struct unixctl_server *server = NULL;
bool exiting = false;
if (get_detach()) {
daemonize_start(false);
daemonize_start(false, false);

char *abs_unixctl_path = get_abs_unix_ctl_path(unixctl_path);
int error = unixctl_server_create(abs_unixctl_path, &server);
Expand Down

0 comments on commit 558da0c

Please sign in to comment.