SR-IOV: различия между версиями
Материал из noname.com.ua
Перейти к навигацииПерейти к поискуSirmax (обсуждение | вклад) (Новая страница: «Категория:linux Категория:Networking Категория:Intel =SR-IOV= Заметки про SR-IOV») |
Sirmax (обсуждение | вклад) (→SR-IOV) |
||
(не показаны 3 промежуточные версии этого же участника) | |||
Строка 4: | Строка 4: | ||
=SR-IOV= |
=SR-IOV= |
||
Заметки про SR-IOV |
Заметки про SR-IOV |
||
+ | * https://hareshkhandelwal.blog/2019/03/20/sr-iov-trusted-vf-and-vlan-trunking/ |
||
+ | <PRE> |
||
+ | echo 7 > /sys/class/net/enp4s0f1/device/sriov_numvfs |
||
+ | </PRE> |
||
+ | |||
+ | <PRE> |
||
+ | ip link set dev enp5s0f0 vf 0 trust on |
||
+ | </PRE> |
||
+ | |||
+ | <PRE> |
||
+ | ip link show dev enp5s0f0 |
||
+ | 4: enp5s0f0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP mode DEFAULT group default qlen 1000 |
||
+ | link/ether 90:e2:ba:4a:d3:3c brd ff:ff:ff:ff:ff:ff |
||
+ | vf 0 link/ether 52:49:9c:61:90:18 brd ff:ff:ff:ff:ff:ff, spoof checking on, link-state auto, trust on, query_rss off |
||
+ | </PRE> |
||
+ | |||
+ | |||
+ | <PRE> |
||
+ | ip link set dev enp5s0f0 vf 0 spoofchk off |
||
+ | </PRE> |
||
+ | |||
+ | <PRE> |
||
+ | ip link show dev enp5s0f0 |
||
+ | 4: enp5s0f0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP mode DEFAULT group default qlen 1000 |
||
+ | link/ether 90:e2:ba:4a:d3:3c brd ff:ff:ff:ff:ff:ff |
||
+ | vf 0 link/ether 52:49:9c:61:90:18 brd ff:ff:ff:ff:ff:ff, spoof checking off, link-state auto, trust on, query_rss off |
||
+ | </PRE> |
||
+ | |||
+ | |||
+ | |||
+ | |||
+ | <PRE> |
||
+ | ip link add link enp5s0f0v0 name enp5s0f0v0.132 type vlan id 132 |
||
+ | </PRE> |
||
+ | |||
+ | |||
+ | <PRE> |
||
+ | ip -d link show dev enp5s0f0v0.132 |
||
+ | 117: enp5s0f0v0.132@enp5s0f0v0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP mode DEFAULT group default qlen 1000 |
||
+ | link/ether 52:49:9c:61:90:18 brd ff:ff:ff:ff:ff:ff promiscuity 0 minmtu 0 maxmtu 65535 |
||
+ | vlan protocol 802.1Q id 132 <REORDER_HDR> addrgenmode eui64 numtxqueues 1 numrxqueues 1 gso_max_size 65536 gso_max_segs 65535 |
||
+ | </PRE> |
||
+ | |||
+ | |||
+ | <PRE> |
||
+ | |||
+ | </PRE> |
||
+ | |||
+ | |||
+ | <PRE> |
||
+ | </PRE> |
Текущая версия на 17:28, 10 декабря 2023
SR-IOV
Заметки про SR-IOV
echo 7 > /sys/class/net/enp4s0f1/device/sriov_numvfs
ip link set dev enp5s0f0 vf 0 trust on
ip link show dev enp5s0f0 4: enp5s0f0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP mode DEFAULT group default qlen 1000 link/ether 90:e2:ba:4a:d3:3c brd ff:ff:ff:ff:ff:ff vf 0 link/ether 52:49:9c:61:90:18 brd ff:ff:ff:ff:ff:ff, spoof checking on, link-state auto, trust on, query_rss off
ip link set dev enp5s0f0 vf 0 spoofchk off
ip link show dev enp5s0f0 4: enp5s0f0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP mode DEFAULT group default qlen 1000 link/ether 90:e2:ba:4a:d3:3c brd ff:ff:ff:ff:ff:ff vf 0 link/ether 52:49:9c:61:90:18 brd ff:ff:ff:ff:ff:ff, spoof checking off, link-state auto, trust on, query_rss off
ip link add link enp5s0f0v0 name enp5s0f0v0.132 type vlan id 132
ip -d link show dev enp5s0f0v0.132 117: enp5s0f0v0.132@enp5s0f0v0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP mode DEFAULT group default qlen 1000 link/ether 52:49:9c:61:90:18 brd ff:ff:ff:ff:ff:ff promiscuity 0 minmtu 0 maxmtu 65535 vlan protocol 802.1Q id 132 <REORDER_HDR> addrgenmode eui64 numtxqueues 1 numrxqueues 1 gso_max_size 65536 gso_max_segs 65535