← All posts tagged aes-ni

mikeb
вычитал сегодня на гардиане: "Snowden should not have to rely on a cynical human rights violator such as Vladimir Putin. He should be given shelter in an EU country." :)
mikeb
Intel code ixgbe
error = ixgbe_init_shared_code(hw);
	if (error == IXGBE_ERR_SFP_NOT_PRESENT) {
за исключением того, что init_shared_code просто забивает поинтеры на функции
для разных чипов и к SFP отношения не имеет... как жеж заебал этот говнокод!
mikeb
code OpenBSD sparc64 myricom myx
myx0 at pci7 dev 0 function 0 "Myricom Z8E" rev 0x01: msi, model 10G-PCIE2-8C2-2S, address 00:60:dd:45:4f:b0
myx1 at pci9 dev 0 function 0 "Myricom Z8E" rev 0x01: msi, model 10G-PCIE2-8C2-2S, address 00:60:dd:45:4f:b1

$ ifconfig myx0                                                                
myx0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
        lladdr 00:60:dd:45:4f:b0
        priority: 0
        media: Ethernet autoselect (autoselect full-duplex,rxpause,txpause)
        status: active
        inet6 fe80::260:ddff:fe45:4fb0%myx0 prefixlen 64 scopeid 0x7
        inet 10.201.1.2 netmask 0xffffff00 broadcast 10.201.1.255
$ vmstat -i      
interrupt                       total     rate
pyro0                          130162      356
bge0                              803        2
mpi0                             2244        6
com0                              117        0
clock                           73259      200
myx0                           127918      350
Total                          334503      916
mikeb
code OpenBSD x540 10g?
m4:~$ dmesg | grep ^ix                                                         
ix0 at pci2 dev 0 function 0 "Intel X540T" rev 0x01: msi, address 00:25:90:6d:44:f2
ix1 at pci2 dev 0 function 1 "Intel X540T" rev 0x01: msi, address 00:25:90:6d:44:f3
m4:~$ sudo ifconfig ix0  
ix0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
        lladdr 00:25:90:6d:44:f2
        priority: 0
        media: Ethernet autoselect (1000baseT full-duplex)
        status: active
        inet6 fe80::225:90ff:fe6d:44f2%ix0 prefixlen 64 scopeid 0x1
mikeb
FreeBSD 9.1 ура. и oce даже залоадилось:
oce0: <Emulex CNA NIC function:///4.2.116.0///> mem 0x92280000-0x92283fff,0x92200000-0x9221ffff,0x92220000-0x9223ffff irq 40 at device 0.0 on pci22
oce0: Ethernet address: 5c:f3:fc:36:1a:80
oce0: link state changed to UP
oce1: <Emulex CNA NIC function:///4.2.116.0///> mem 0x92284000-0x92287fff,0x92240000-0x9225ffff,0x92260000-0x9227ffff irq 44 at device 0.1 on pci22
oce1: Ethernet address: 5c:f3:fc:36:1a:84
oce1: link state changed to UP
mikeb
code
родил конструкцию для FSM чтобы не кушать горизонтальное
пространство (aka уложиться в 80 символов):

	do switch (state) {
	case ST_XXX:
		...
		break;
	...
	} while (state != ST_FINISH);
mikeb
sse avx aes-ni vaesenc инструкция оперируют на 3-х xmm регистрах, а не на двух ymm, как могло показаться. по-видимому она использует третий регистр как целевой и не портит содержимое источников.
mikeb
FreeBSD code грусть-печаль
pci11: <network, ethernet> at device 0.0 (no driver attached)
pci9: <network, ethernet> at device 0.0 (no driver attached)

none3@pci0:11:0:0:      class=0x020000 card=0x000a14c1 chip=0x000814c1 rev=0x01 
hdr=0x00
    vendor     = 'Myricom Inc.'
    device     = 'Myri-10G Dual-Protocol NIC (10G-PCIE-8A)'
    class      = network
    subclass   = ethernet
none4@pci0:9:0:0:       class=0x020000 card=0x000a14c1 chip=0x000814c1 rev=0x01 hdr=0x00
    vendor     = 'Myricom Inc.'
    device     = 'Myri-10G Dual-Protocol NIC (10G-PCIE-8A)'
    class      = network
    subclass   = ethernet
mikeb
code это-безумие это-freebsd
lqqqqqqqqqqqqqq User and group management qqqqqqqqqqqqqqk
           x The submenus here allow to manipulate user groups and x
           x login accounts.                                       x
           x                                                       x
           x lqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqk x
           x x  X Exit  Exit this menu (returning to previous)   x x
           x x  User    Add a new user to the system.            x x
           x x  Group   Add a new user group to the system.      x x
           x mqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqj x
           tqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqu
           x                [  OK  ]       Cancel                  x
           mqqqqqqq[ Configure your user groups and users ]qqqqqqqqj