On Tue, 28 Jan 2003, Catalin BOIE wrote: | Can anyone tell me who call dev_queue_xmit? | I try to follow a packet flow and I don't know who call this function. | Can you give me some hints, please? Are you familiar with "grep"? (man 1 grep) in linux-2559/drivers/net: [rddunlap@dragon net]$ [rddunlap@dragon net]$ findc dev_queue_xmit ./wan/syncppp.c:807: dev_queue_xmit(skb); ./wan/syncppp.c:849: dev_queue_xmit(skb); ./wan/comx-proto-fr.c:116: dev_queue_xmit(skb); ./wan/comx-proto-fr.c:512: dev_queue_xmit(newskb); ./wan/hdlc_cisco.c:89: dev_queue_xmit(skb); ./wan/lapbether.c:265: dev_queue_xmit(skb); ./wan/hdlc_fr.c:159: dev_queue_xmit(skb); ./wan/hdlc_fr.c:276: dev_queue_xmit(skb); ./hamradio/bpqether.c:325: dev_queue_xmit(skb); ./pppoe.c:844: dev_queue_xmit(skb); ./pppoe.c:914: if (dev_queue_xmit(skb2) < 0) ./shaper.c:283: dev_queue_xmit(newskb); ./eql.c:359: dev_queue_xmit(skb); ./bonding.c:2482: dev_queue_xmit(skb2); ./bonding.c:2491: dev_queue_xmit(skb); ./bonding.c:2531: dev_queue_xmit(skb); ./bonding.c:2592: dev_queue_xmit(skb); ./bonding.c:2660: ret = dev_queue_xmit(skb); in linux-2559/net: [rddunlap@dragon net]$ findc dev_queue_xmit ./core/neighbour.c:958: return dev_queue_xmit(skb); ./core/dev.c:132:NET_PROFILE_DEFINE(dev_queue_xmit) ./core/dev.c:984: * dev_queue_xmit - transmit a buffer ./core/dev.c:996:int dev_queue_xmit(struct sk_buff *skb) ./core/dev.c:1440: return dev_queue_xmit(skb); ./core/dev.c:2817: NET_PROFILE_REGISTER(dev_queue_xmit); ./ipv4/ipconfig.c:717: dev_queue_xmit(skb) < 0) ./ipv4/arp.c:135: .hh_output = dev_queue_xmit, ./ipv4/arp.c:136: .queue_xmit = dev_queue_xmit, ./ipv4/arp.c:145: .hh_output = dev_queue_xmit, ./ipv4/arp.c:146: .queue_xmit = dev_queue_xmit, ./ipv4/arp.c:151: .output = dev_queue_xmit, ./ipv4/arp.c:152: .connected_output = dev_queue_xmit, ./ipv4/arp.c:153: .hh_output = dev_queue_xmit, ./ipv4/arp.c:154: .queue_xmit = dev_queue_xmit, ./ipv4/arp.c:163: .hh_output = dev_queue_xmit, ./ipv4/arp.c:164: .queue_xmit = dev_queue_xmit, ./ipv4/arp.c:596: NF_HOOK(NF_ARP, NF_ARP_OUT, skb, NULL, dev, dev_queue_xmit); ./ipv4/route.c:307: dev_queue_xmit) : 0, dev_queue_xmit() ./bridge/br_forward.c:41: dev_queue_xmit(skb); ./bridge/br_stp_bpdu.c:56: dev_queue_xmit(skb); ./irda/irlap_frame.c:99: dev_queue_xmit(skb); ./llc/llc_conn.c:365: dev_queue_xmit(skb); ./llc/llc_main.c:382: if (dev_queue_xmit(skb)) ./llc/llc_s_ac.c:61: rc = dev_queue_xmit(skb); ./llc/llc_s_ac.c:84: rc = dev_queue_xmit(skb); ./llc/llc_s_ac.c:114: rc = dev_queue_xmit(nskb); ./llc/llc_s_ac.c:138: rc = dev_queue_xmit(skb); ./llc/llc_s_ac.c:160: rc = dev_queue_xmit(nskb); ./atm/clip.c:281: .output = dev_queue_xmit, ./atm/clip.c:282: .connected_output = dev_queue_xmit, ./atm/clip.c:283: .hh_output = dev_queue_xmit, ./atm/clip.c:284: .queue_xmit = dev_queue_xmit, ./ax25/ax25_out.c:362: dev_queue_xmit(skb); ./ax25/ax25_ds_subr.c:148: dev_queue_xmit(skb); ./ipv6/ndisc.c:94: .hh_output = dev_queue_xmit, ./ipv6/ndisc.c:95: .queue_xmit = dev_queue_xmit, ./ipv6/ndisc.c:104: .hh_output = dev_queue_xmit, ./ipv6/ndisc.c:105: .queue_xmit = dev_queue_xmit, ./ipv6/ndisc.c:111: .output = dev_queue_xmit, ./ipv6/ndisc.c:112: .connected_output = dev_queue_xmit, ./ipv6/ndisc.c:113: .hh_output = dev_queue_xmit, ./ipv6/ndisc.c:114: .queue_xmit = dev_queue_xmit, ./ipv6/ndisc.c:434: dev_queue_xmit(skb); ./ipv6/ndisc.c:496: dev_queue_xmit(skb); ./ipv6/ndisc.c:547: dev_queue_xmit(skb); ./ipv6/ndisc.c:1228: dev_queue_xmit(buff); ./ipv6/mcast.c:571: dev_queue_xmit(skb); ./ethernet/pe2.c:15: return dev_queue_xmit(skb); ./x25/x25_dev.c:187: dev_queue_xmit(skb); ./x25/x25_dev.c:213: dev_queue_xmit(skb); ./x25/x25_dev.c:241: dev_queue_xmit(skb); ./802/p8023.c:32: return dev_queue_xmit(skb); ./packet/af_packet.c:373: dev_queue_xmit(skb); ./packet/af_packet.c:738: err = dev_queue_xmit(skb); ./appletalk/aarp.c:634: dev_queue_xmit(skb); ./decnet/dn_neigh.c:61: .hh_output = dev_queue_xmit, ./decnet/dn_neigh.c:62: .queue_xmit = dev_queue_xmit, ./decnet/dn_neigh.c:73: .hh_output = dev_queue_xmit, ./decnet/dn_neigh.c:74: .queue_xmit = dev_queue_xmit, ./decnet/dn_neigh.c:85: .hh_output = dev_queue_xmit, ./decnet/dn_neigh.c:86: .queue_xmit = dev_queue_xmit ./8021q/vlan_dev.c:506: dev_queue_xmit(skb); ./8021q/vlan_dev.c:525: dev_queue_xmit(skb); ./econet/af_econet.c:379: dev_queue_xmit(skb); -- ~Randy - : send the line "unsubscribe linux-net" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html