Thread (51 messages) 51 messages, 5 authors, 2017-07-06

Re: [PATCH v4 4/4] app/testpmd: add isolated mode parameter

From: Wu, Jingjing <hidden>
Date: 2017-06-20 01:26:58

quoted hunk ↗ jump to hunk
+/*
  * Avoids to check link status when starting/stopping a port.
  */
 uint8_t no_link_check = 0; /* check by default */
@@ -1422,6 +1427,15 @@ static void eth_event_callback(uint8_t port_id,
 		if (port->need_reconfig > 0) {
 			port->need_reconfig = 0;

+			if (isolated_mode) {
+				int ret = port_flow_isolate(pi, 1);
+				if (ret) {
+					printf("Failed to apply isolated"
+					       " mode on port %d\n", pi);
+					return -1;
+				}
+			}
+
Should it block the app startup if isolated-mode setting fails?
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help