- 积分
- 43
贡献336
飞刀77 FD
注册时间2021-6-20
在线时间6 小时
|
楼主 |
发表于 2021-7-28 20:00:32
|
显示全部楼层
测了下,是fm1-mac2和fm1-mac5不能正常转发
步骤如下:
echo 256 > /proc/sys/vm/nr_hugepages
mkdir -p /mnt/hugepages
mount -t hugetlbfs 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
export DPAA_NUM_RX_QUEUES=1
pkill -9 ovs
export DPDK_EXCLUDE_DEFAULT_MBUF=1
export PATH=$PATH:/usr/local/bin
export PATH=$PATH:/usr/local/sbin
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/sbin/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 set 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"
export OVS_CORE_MASK=0x1
export OVS_SERVICE_MASK=0x1
ovs-vsctl --no-wait set Open_vSwitch . other_config:dpdk-lcore-mask=$OVS_SERVICE_MASK
ovs-vsctl --no-wait set 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:dpdk-devargs=fm1-mac4 options:n_rxq_desc=256 options: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 ovs-br dpdk4 -- 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-devargs=fm1-mac10 options:n_rxq_desc=256 options:n_txq_desc=256 |
|