Replace Linux skb_put with mbuf m_append

2013-06-21 Thread Monthadar Al Jaberi
ruct htc_conn_service_msg)); if (m_append(m, length, (uint8_t *) &conn_msg)) { goto free_packet; } I append to the mbuf in the end. I would like to hear your opinion on this. Is there a better faster way? br, -- Monthadar Al Jaberi ___ freebsd-hackers@fre

Re: dynamic attach of hinted devices

2012-02-04 Thread Monthadar Al Jaberi
dr Rybalko > ___ > freebsd-hackers@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-hackers > To unsubscribe, send any mail to "freebsd-hackers-unsubscr...@freebsd.org" -- Monthadar Al Jaberi __

Re: loop inside uma_zfree critical section

2011-12-16 Thread Monthadar Al Jaberi
On Wed, Dec 14, 2011 at 9:10 PM, Arnaud Lacombe wrote: > Hi, > > On Wed, Dec 14, 2011 at 2:47 PM, Monthadar Al Jaberi > wrote: >> On Tue, Dec 13, 2011 at 4:50 PM, Monthadar Al Jaberi >> wrote: >>> On Tue, Dec 13, 2011 at 3:35 PM, John Baldwin wrote: >>&

Re: loop inside uma_zfree critical section

2011-12-14 Thread Monthadar Al Jaberi
On Tue, Dec 13, 2011 at 4:50 PM, Monthadar Al Jaberi wrote: > On Tue, Dec 13, 2011 at 3:35 PM, John Baldwin wrote: >> On Tuesday, December 13, 2011 7:46:34 am Monthadar Al Jaberi wrote: >>> Hi, >>> >>> I am not sure why I am having this problem, but looki

Re: loop inside uma_zfree critical section

2011-12-13 Thread Monthadar Al Jaberi
On Tue, Dec 13, 2011 at 3:35 PM, John Baldwin wrote: > On Tuesday, December 13, 2011 7:46:34 am Monthadar Al Jaberi wrote: >> Hi, >> >> I am not sure why I am having this problem, but looking >> at the code I dont understand uma_core.c really good. >> So I hope

loop inside uma_zfree critical section

2011-12-13 Thread Monthadar Al Jaberi
pointer to an mbuf that is still being used by us, [1] and [3] have same address. Then we call m_freem twice on same mbuf, [4] and [5]. And a loop occurs inside uma_free. I am using mbufs in a wrong way? Shouldnt mbufs be thread safe? Problem seems to occur while swapping buckets. Br, -- M

Dynamic kernel module linking problem

2011-08-26 Thread Monthadar Al Jaberi
temp) { printf("%s\n", ifp->if_dname); } Compilation is fine, but when I load the module I get the following error: ... /sbin/kldload -v module.ko link_elf: symbol ifnet undefined ... What am I doing wrong? Shouldn't kernel be able to link it on its own? Grateful for any advi