测了下,是fm1-mac2和fm1-mac5不能正常转发
如下:
echo 256 > /proc/sys/vm/nr_hugepages
mkdir -p /mnt/hugepages
mount -thugetlbfs none /mnt/hugepages
export DPAA_FMC_MODE=1
fmc -c /usr/local/dpdk/dpaa/usdpaa_config_ls1046_1133.xml -p
/usr/local/dpdk/dpaa/usdpaa_policy_hash_ipv4_1queue.xml -a
出口DPAA_NUM_RX_QUEUES = 1
pkill的-9 OVS
出口DPDK_EXCLUDE_DEFAULT_MBUF = 1个
出口PATH = $ PATH:/ usr/local/bin
导出路径=$PATH:/usr/local/***in
rm -rf /usr/local/etc/openvswitch/conf.db
rm -rf /usr/local/var/run/openvswitch/vhost-user1
rm -rf /usr/local/var/run/openvswitch/vhost-user2
rm -f /tmp/conf.db
mkdir -p /var/log/openvswitch
mkdir -p /usr/local/etc/openvswitch
mkdir -p /usr/local/var/run/openvswitch
/usr/local/bin/ovsdb-tool create
/usr/local/etc/openvswitch/conf.db /usr /local/share/openvswitch/vswitch.ovsschema
/usr/local/***in/ovsdb-server --remote=punix:/usr/local/var/run/openvswitch/db.sock
--remote=db:Open_vSwitch,Open_vSwitch ,manager_options --pidfile --detach
--log-file=/var/log/openvswitch/ovs-vswitchd.log
export DB_SOCK=/usr/local/var/run/openvswitch/db.sock
/usr/local/bin /ovs-vsctl --no-wait 设置 Open_vSwitch 。other_config:dpdk-init=true
export SOCK_MEM=200
/usr/local/bin/ovs-vsctl --no-wait set Open_vSwitch 。
other_config:dpdk-socket-mem="$SOCK_MEM"
导出 OVS_CORE_MASK=0x1
导出 OVS_SERVICE_MASK=0x1
ovs-vsctl --no-wait 设置 Open_vSwitch 。other_config:dpdk-lcore-mask=$OVS_SERVICE_MASK
ovs-vsctl --no-wait 设置 Open_vSwitch 。other_config:pmd-cpu-mask=$OVS_CORE_MASK
ovs-vswitchd unix:$DB_SOCK --pidfile --detach -c $OVS_CORE_MASK
ovs-vsctl add-br ovs-br -- set bridge ovs-br
datapath_type =netdev ovs-vsctl add -port ovs-br dpdk0 -- set Inte**ce dpdk0 type=dpdk options:dpdk-devargs=fm1-mac2 options:n_rxq_desc=256 options:n_txq_desc=256
ovs-vsctl add-port ovs-br dpdk1 -- set Inte **ce dpdk1 type=dpdk options:dpdk-devargs=fm1-mac3 options:n_rxq_desc=256 options:n_txq_desc=256
ovs-vsctl add-port ovs-br dpdk2 -- set Inte**ce dpdk2 type=dpdk options: -devargs=fm1-mac4 选项:n_rxq_desc=256 选项:n_txq_desc=256
ovs-vsctl add-port ovs-br dpdk3 -- set Inte**ce dpdk3 type=dpdk options:dpdk-devargs=fm1-mac5 options:n_rxq_desc=256 options:n_txq_desc=256
ovs-vsctl add-port ovdk4br -- set Inte**ce dpdk4 type=dpdk options:dpdk-devargs=fm1-mac6 options:n_rxq_desc=256 options:n_txq_desc=256
ovs-vsctl add-port ovs-br dpdk5 -- set Inte**ce dpdk5 type= dpdk options:dpdk-devargs=fm1-mac9 options:n_rxq_desc=256 options:n_txq_desc=256
ovs-vsctl add-port ovs-br dpdk6 -- set Inte**ce dpdk6 type=dpdk options:dpdk-devmacs10f选项:n_rxq_desc=256 选项:n_txq_desc=256
测了下,是fm1-mac2和fm1-mac5不能正常转发
如下:
echo 256 > /proc/sys/vm/nr_hugepages
mkdir -p /mnt/hugepages
mount -thugetlbfs none /mnt/hugepages
export DPAA_FMC_MODE=1
fmc -c /usr/local/dpdk/dpaa/usdpaa_config_ls1046_1133.xml -p
/usr/local/dpdk/dpaa/usdpaa_policy_hash_ipv4_1queue.xml -a
出口DPAA_NUM_RX_QUEUES = 1
pkill的-9 OVS
出口DPDK_EXCLUDE_DEFAULT_MBUF = 1个
出口PATH = $ PATH:/ usr/local/bin
导出路径=$PATH:/usr/local/***in
rm -rf /usr/local/etc/openvswitch/conf.db
rm -rf /usr/local/var/run/openvswitch/vhost-user1
rm -rf /usr/local/var/run/openvswitch/vhost-user2
rm -f /tmp/conf.db
mkdir -p /var/log/openvswitch
mkdir -p /usr/local/etc/openvswitch
mkdir -p /usr/local/var/run/openvswitch
/usr/local/bin/ovsdb-tool create
/usr/local/etc/openvswitch/conf.db /usr /local/share/openvswitch/vswitch.ovsschema
/usr/local/***in/ovsdb-server --remote=punix:/usr/local/var/run/openvswitch/db.sock
--remote=db:Open_vSwitch,Open_vSwitch ,manager_options --pidfile --detach
--log-file=/var/log/openvswitch/ovs-vswitchd.log
export DB_SOCK=/usr/local/var/run/openvswitch/db.sock
/usr/local/bin /ovs-vsctl --no-wait 设置 Open_vSwitch 。other_config:dpdk-init=true
export SOCK_MEM=200
/usr/local/bin/ovs-vsctl --no-wait set Open_vSwitch 。
other_config:dpdk-socket-mem="$SOCK_MEM"
导出 OVS_CORE_MASK=0x1
导出 OVS_SERVICE_MASK=0x1
ovs-vsctl --no-wait 设置 Open_vSwitch 。other_config:dpdk-lcore-mask=$OVS_SERVICE_MASK
ovs-vsctl --no-wait 设置 Open_vSwitch 。other_config:pmd-cpu-mask=$OVS_CORE_MASK
ovs-vswitchd unix:$DB_SOCK --pidfile --detach -c $OVS_CORE_MASK
ovs-vsctl add-br ovs-br -- set bridge ovs-br
datapath_type =netdev ovs-vsctl add -port ovs-br dpdk0 -- set Inte**ce dpdk0 type=dpdk options:dpdk-devargs=fm1-mac2 options:n_rxq_desc=256 options:n_txq_desc=256
ovs-vsctl add-port ovs-br dpdk1 -- set Inte **ce dpdk1 type=dpdk options:dpdk-devargs=fm1-mac3 options:n_rxq_desc=256 options:n_txq_desc=256
ovs-vsctl add-port ovs-br dpdk2 -- set Inte**ce dpdk2 type=dpdk options: -devargs=fm1-mac4 选项:n_rxq_desc=256 选项:n_txq_desc=256
ovs-vsctl add-port ovs-br dpdk3 -- set Inte**ce dpdk3 type=dpdk options:dpdk-devargs=fm1-mac5 options:n_rxq_desc=256 options:n_txq_desc=256
ovs-vsctl add-port ovdk4br -- set Inte**ce dpdk4 type=dpdk options:dpdk-devargs=fm1-mac6 options:n_rxq_desc=256 options:n_txq_desc=256
ovs-vsctl add-port ovs-br dpdk5 -- set Inte**ce dpdk5 type= dpdk options:dpdk-devargs=fm1-mac9 options:n_rxq_desc=256 options:n_txq_desc=256
ovs-vsctl add-port ovs-br dpdk6 -- set Inte**ce dpdk6 type=dpdk options:dpdk-devmacs10f选项:n_rxq_desc=256 选项:n_txq_desc=256
举报