摘要:https://www.jianshu.com/p/491a14d414f6 第一种情况 : 撤销commit文件 我们先查看一下log日志: 两种查看方法: 1、git log 显示从近到远的日志记录,按向下键来查看更多,按 Q 键退出查看日志 2、git log --pretty=oneline
阅读全文
摘要:static inline int rte_pktmbuf_linearize(struct rte_mbuf *mbuf) { if (rte_pktmbuf_is_contiguous(mbuf)) return 0; return __rte_pktmbuf_linearize(mbuf);
阅读全文
摘要:The VFIO driver is a framework for exposing direct device access to userspace. Virtual machine technology uses VFIO to assign physical device to VMs f
阅读全文
摘要:https://www.codeleading.com/article/67454397455/ https://blog.csdn.net/weixin_43503508/article/details/107924027 static const struct dma_map_ops iommu
阅读全文
摘要:话说,盘古开天的时候,设备访问内存(DMA)就只接受物理地址,所以CPU要把一个地址告诉设备,就只能给物理地址。但设备的地址长度还比CPU的总线长度短,所以只能分配低地址来给设备用。所以CPU这边的接口就只有dma=dma_alloc(dev, size),分配了物理地址,然后映射为内核的va,然后
阅读全文
摘要:https://habr.com/ru/post/446312/ This article is about the interrupt delivery process from external devices in the x86 system. It tries to answer ques
阅读全文
摘要:root@srv6:~# cat /proc/interrupts CPU0 CPU1 CPU2 CPU3 CPU4 CPU5 CPU6 CPU7 1: 0 0 0 0 0 0 9 0 IO-APIC 1-edge i8042 4: 442 0 0 0 319 0 0 0 IO-APIC 4-edg
阅读全文
摘要:首先是内核中断的分类,这里只是根据proc/interrupts下显示的中断进行分类,主要包含外部中断和IPI中断 cat proc/interrupts CPU0 CPU1 CPU2 CPU3 CPU4 CPU5 CPU6 CPU7 1: 107049 104452 77919 106593 17
阅读全文
摘要:switch1 switch2 swtich3 switch1上ping switch3上的地址 <AGG_CE6855_1>ping -a 10.10.16.254 10.10.30.249 PING 10.10.30.249: 56 data bytes, press CTRL_C to bre
阅读全文
摘要:CentOs7中查看电量剩余电量 查看CentOs7中电量剩余电量:cat /sys/class/power_supply/BAT0/capacity [root@localhost ~]# cat /sys/class/power_supply/BAT0/capacity 100 [root@lo
阅读全文
摘要:[root@bogon ~]# arping -I enahisic2i3 -c 1 10.10.103.229 ARPING 10.10.103.229 from 10.10.103.81 enahisic2i3 Unicast reply from 10.10.103.229 [44:A1:91
阅读全文
摘要:https://rtodto.net/fragmented-ip-packet-forwarding/ IP分片只有第一个带有传输层或ICMP首部,其余的分片只有IP头。 分片报文的有效长度是8的倍数 分片需要解决的问题主要有两个:第一,如何判断是否需要分片(若报文的长度大于1500字节且在分片标志
阅读全文
摘要:sysctl -w net.ipv4.conf.all.rp_filter=0 sysctl -w net.ipv4.conf.all.rp_filter=0 sysctl -w net.ipv4.conf.default.rp_filter=0 sysctl -w net.ipv4.conf.et
阅读全文
摘要:Last login: Sun Sep 20 23:51:55 2020 from 192.168.117.59 [root@localhost ~]# cat /var/log/messages|grep conn [root@localhost ~]# dmesg | grep conntrac
阅读全文
摘要:ethtool --show-offload enahisic2i3 ethtool --show-offload enahisic2i3 | grep checksum offload ethtool --show-offload enahisic2i3 | grep checksum ethto
阅读全文
摘要:https://seisman.github.io/how-to-write-makefile/invoke.html 有时候,我们不想让我们的makefile中的规则执行起来,我们只想检查一下我们的命令,或是执行的序列。于是我们可以使用make命令的下述参数: -n, --just-print,
阅读全文
摘要:(gdb) b hinic_tx_offload_pkt_prepare Function "hinic_tx_offload_pkt_prepare" not defined. Make breakpoint pending on future shared library load? (y or
阅读全文
摘要:root@srv6:~# traceroute -p 1053 10.10.16.82 traceroute to 10.10.16.82 (10.10.16.82), 30 hops max, 60 byte packets 1 _gateway (10.10.18.254) 6.265 ms 6
阅读全文