TODO.smpnet revision 1.8
11.8Sozaki$NetBSD: TODO.smpnet,v 1.8 2017/03/11 06:40:19 ozaki-r Exp $ 21.1Sozaki 31.2SozakiMP-safe components 41.2Sozaki================== 51.1Sozaki 61.7Sozaki - Device drivers 71.7Sozaki - vioif(4) 81.7Sozaki - vmx(4) 91.7Sozaki - wm(4) 101.8Sozaki - ixg(4) 111.7Sozaki - Layer 2 121.7Sozaki - Ethernet (if_ethersubr.c) 131.7Sozaki - bridge(4) 141.7Sozaki - STP 151.7Sozaki - Fast forward (ipflow) 161.7Sozaki - Layer 3 171.7Sozaki - All except for items in the below section 181.7Sozaki - Interfaces 191.7Sozaki - gif(4) 201.7Sozaki - l2tp(4) 211.7Sozaki - pppoe(4) 221.7Sozaki - if_spppsubr.c 231.7Sozaki - tun(4) 241.7Sozaki - Packet filters 251.7Sozaki - npf(7) 261.7Sozaki - Others 271.7Sozaki - bpf(4) 281.7Sozaki - pfil(9) 291.2Sozaki 301.2SozakiNon MP-safe components and kernel options 311.2Sozaki========================================= 321.2Sozaki 331.7Sozaki - Device drivers 341.7Sozaki - Most drivers other than ones listed in the above section 351.6Sozaki - Layer 2 361.6Sozaki - ARCNET (if_arcsubr.c) 371.6Sozaki - ATM (if_atmsubr.c) 381.6Sozaki - BRIDGE_IPF 391.6Sozaki - if_ecosubr.c 401.6Sozaki - FDDI (if_fddisubr.c) 411.6Sozaki - HIPPI (if_hippisubr.c) 421.6Sozaki - IEEE 1394 (if_ieee1394subr.c) 431.6Sozaki - IEEE 802.11 (ieee80211(4)) 441.6Sozaki - Token ring (if_tokensubr.c) 451.6Sozaki - Layer 3 461.6Sozaki - IPSELSRC 471.6Sozaki - MROUTING 481.6Sozaki - PIM 491.6Sozaki - MPLS (mpls(4)) 501.2Sozaki - Layer 4 511.6Sozaki - DCCP 521.6Sozaki - SCTP 531.6Sozaki - TCP 541.6Sozaki - UDP 551.6Sozaki - Interfaces 561.6Sozaki - agr(4) 571.6Sozaki - carp(4) 581.6Sozaki - etherip(4) 591.6Sozaki - faith(4) 601.6Sozaki - gre(4) 611.6Sozaki - ppp(4) 621.6Sozaki - sl(4) 631.6Sozaki - stf(4) 641.6Sozaki - strip(4) 651.6Sozaki - if_srt 661.6Sozaki - tap(4) 671.6Sozaki - vlan(4) 681.6Sozaki - Packet filters 691.6Sozaki - ipf(4) 701.6Sozaki - pf(4) 711.6Sozaki - Others 721.6Sozaki - AppleTalk (sys/netatalk/) 731.6Sozaki - ATM (sys/netnatm/) 741.6Sozaki - Bluetooth (sys/netbt/) 751.6Sozaki - altq(4) 761.6Sozaki - CIFS (sys/netsmb/) 771.6Sozaki - ipsec(4) 781.6Sozaki - ISDN (sys/netisbn/) 791.6Sozaki - kttcp(4) 801.6Sozaki - NFS 811.6Sozaki - opencrypto(9) 821.2Sozaki 831.2SozakiKnow issues 841.2Sozaki=========== 851.1Sozaki 861.1Sozakibpf 871.2Sozaki--- 881.1Sozaki 891.1SozakiMP-ification of bpf requires all of bpf_mtap* are called in normal LWP context 901.1Sozakior softint context, i.e., not in hardware interrupt context. For Tx, all 911.1Sozakibpf_mtap satisfy the requrement. For Rx, most of bpf_mtap are called in softint. 921.1SozakiUnfortunately some bpf_mtap on Rx are still called in hardware interrupt context. 931.1Sozaki 941.1SozakiThis is the list of the functions that have such bpf_mtap: 951.1Sozaki 961.1Sozaki - sca_frame_process() @ sys/dev/ic/hd64570.c 971.1Sozaki - en_intr() @ sys/dev/ic/midway.c 981.1Sozaki - rxintr_cleanup() and txintr_cleanup() @ sys/dev/pci/if_lmc.c 991.1Sozaki - ipr_rx_data_rdy() @ sys/netisdn/i4b_ipr.c 1001.1Sozaki 1011.1SozakiIdeally we should make the functions run in softint somehow, but we don't have 1021.1Sozakiactual devices, no time (or interest/love) to work on the task, so instead we 1031.1Sozakiprovide a deferred bpf_mtap mechanism that forcibly runs bpf_mtap in softint 1041.1Sozakicontext. It's a workaround and once the functions run in softint, we should use 1051.1Sozakithe original bpf_mtap again. 106