View tap-test.lua
1 2 3 4 5 6 7 8 9 10
-- tap-test.lua -- test program based on ljsyscall test code
-- Reference example code for ljsyscall here:
-- https://github.com/justincormack/ljsyscall/blob/master/test/linux.lua
 
-- Run via Snabb Switch like this:
-- sudo snabb snsh tap-test.lua
 
local syscall = require("syscall") -- ljsyscall
 
-- Create a new tap device
View gist:2667f349fde9bd8fd13f
1 2 3 4 5 6 7 8 9 10
linux$ git log --graph --merges --format='%h %cn %s' | head -500
* 1113cdf Linus Torvalds: Merge tag 'nfs-for-4.1-2' of git://git.linux-nfs.org/projects/trondmy/linux-nfs
* 416716e Linus Torvalds: Merge tag 'powerpc-4.1-4' of git://git.kernel.org/pub/scm/linux/kernel/git/mpe/linux
* 68465bb Linus Torvalds: Merge tag 'pwm/for-4.1-rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/thierry.reding/linux-pwm
* 7cf7d42 Linus Torvalds: Merge tag 'for-linus-20150516' of git://git.infradead.org/linux-mtd
* c0655fe Linus Torvalds: Merge tag 'usb-4.1-rc4' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb
|\
| * 5691926 Greg Kroah-Hartman: Merge tag 'usb-serial-4.1-rc4' of git://git.kernel.org/pub/scm/linux/kernel/git/johan/usb-serial into usb-linus
| * 17aeca1 Greg Kroah-Hartman: Merge tag 'usb-ci-v4.1-rc3' of git://git.kernel.org/pub/scm/linux/kernel/git/peter.chen/usb into usb-linus
| * 99c605a Greg Kroah-Hartman: Merge tag 'fixes-for-v4.1-rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/balbi/us
View gist:7edf49dd7f28275a3273
1 2 3 4 5 6 7 8 9 10
-- Return three values:
-- valid - is the header checksum valid (always true for IPv6)
-- offset - where the inner checksum starts, or nil if no more to checksum
-- initial - initial value for inner checksum ("pseudo header checksum")
function check_header (p)
if is_ipv4(p) then
-- check header checksum;
-- find start of tcp/udp header;
-- calculate pseudo header checksum
elseif is_ipv6(p) then
View solareflare-noalloc.diff
1 2 3 4 5 6 7 8 9 10
diff --git a/src/apps/solarflare/solarflare.lua b/src/apps/solarflare/solarflare.lua
index 5aeddde..7944815 100644
--- a/src/apps/solarflare/solarflare.lua
+++ b/src/apps/solarflare/solarflare.lua
@@ -82,7 +82,7 @@ function SolarFlareNic:flush_receives(id)
end
function SolarFlareNic:enqueue_transmit(p)
- assert(not self.tx_packets[self.tx_id], "tx buffer overrun")
+-- assert(self.tx_packets[self.tx_id] ~= nil, "tx buffer overrun")
View gist:bda37923f504e0c4f71f
1 2 3 4 5 6 7 8 9 10
LINK snabb
Firmware: 936K snabb
selftest: intel_app
 
Running iterated VMDq test...
never got link up: 0000:01:00.0
test # 1: VMDq VLAN=101; 100ms burst. packet sent: 206,040
test # 2: VMDq VLAN=102; 100ms burst. packet sent: 229,755
test # 3: VMDq VLAN=103; 100ms burst. packet sent: 226,950
test # 4: VMDq VLAN=104; 100ms burst. packet sent: 225,420
View gist:88ac918d3984b0ab36cb

This error:

Invalid DMA address: 0x5002e0925a00
core/memory.lua:95: DMA address tag check failed

is reported by this function:

View rte_memcpy.h
1 2 3 4 5 6 7 8 9 10
/*-
* BSD LICENSE
*
* Copyright(c) 2010-2014 Intel Corporation. All rights reserved.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
View gist:8b17a07246d999331b04
1 2 3 4 5 6 7 8 9 10
00000000004026e1 <rte_memcpy_wrapped_in_function>:
4026e1: 55 push %rbp
4026e2: 48 89 e5 mov %rsp,%rbp
4026e5: 48 81 ec d0 14 00 00 sub $0x14d0,%rsp
4026ec: 48 89 bd 48 eb ff ff mov %rdi,-0x14b8(%rbp)
4026f3: 48 89 b5 40 eb ff ff mov %rsi,-0x14c0(%rbp)
4026fa: 89 95 3c eb ff ff mov %edx,-0x14c4(%rbp)
402700: 8b 85 3c eb ff ff mov -0x14c4(%rbp),%eax
402706: 48 98 cltq
402708: 48 8b 95 48 eb ff ff mov -0x14b8(%rbp),%rdx
View gist:4da12ff28023d7319200
1 2 3 4 5 6 7 8 9 10
report on intel device 0000:05:00.1
BPTC 2 Broadcast Packets Transmitted Count
GORCL 47,124,202 Good Octets Received Count Low
GOTCH 8 Good Octets Transmitted Count High
GOTCL 1,843,203,750 Good Octets Transmitted Count Low
GPRC 671,807 Good Packets Received Count
GPTC 23,866,068 Good Packets Transmitted Count
MLFC 3 MAC Local Fault Count
MRFC 1 MAC Remote Fault Count
PRC127 671,805 Packets Received [65-127 Bytes] Count
View gist:39a33cdafa3b9c622363
1 2 3 4 5 6 7 8 9 10
2014-09-03 07:05:48.595 | Obtaining file:///opt/stack/nova
2014-09-03 07:05:48.636 | Running setup.py (path:/opt/stack/nova/setup.py) egg_info for package from file:///opt/stack/nova
2014-09-03 07:05:48.937 | ERROR:root:Error parsing
2014-09-03 07:05:48.938 | Traceback (most recent call last):
2014-09-03 07:05:48.938 | File "/usr/local/lib/python2.7/dist-packages/pbr/core.py", line 104, in pbr
2014-09-03 07:05:48.938 | attrs = util.cfg_to_args(path)
2014-09-03 07:05:48.938 | File "/usr/local/lib/python2.7/dist-packages/pbr/util.py", line 238, in cfg_to_args
2014-09-03 07:05:48.938 | pbr.hooks.setup_hook(config)
2014-09-03 07:05:48.938 | File "/usr/local/lib/python2.7/dist-packages/pbr/hooks/__init__.py", line 27, in setup_hook
2014-09-03 07:05:48.938 | metadata_config.run()
Something went wrong with that request. Please try again.