rwlock(9) upgrade

2013-09-29 Thread Hooman Fazaeli
Hi, For rwlock(9), there is no rwlock_upgrade function. Is it safe to use rw_wlock() for that purpose? In other words, Does calling rw_wlock() upgradeanalready r-locked lock? -- Best regards. Hooman Fazaeli ___ freebsd-hackers@freebsd.org mailing

Re: syslog(3) issues

2012-09-03 Thread Hooman Fazaeli
On 9/3/2012 4:05 AM, Attilio Rao wrote: Hi, I was trying to use syslog(3) in a port application that uses threading , having all of them at the LOG_CRIT level. What I see is that when the logging gets massive (1000 entries) I cannot find some items within the /var/log/messages (I know because I s

How to know __FreeBSD_version for a symbol

2012-08-13 Thread Hooman Fazaeli
Hi hackers In the process of back porting drivers to older freebsd versions, We sometimes need to add suitable '#if __FreeBSD_version >= x ... else ... ' directives to the source to use an alternate function or exclude certain statements, defines, etc. What is the best (quick/reliable) way t

Re: intel checksum offload

2011-09-19 Thread Hooman Fazaeli
yeon PYUN mailto:pyu...@gmail.com>> wrote: >> >> > On Sat, Sep 17, 2011 at 11:57:10AM +0430, Hooman Fazaeli wrote: >> >> >> Hi list, >> >> >> >> >> >> The data sheet for intel 82576 advertises IP TX/RX checksum

intel checksum offload

2011-09-17 Thread Hooman Fazaeli
Hi list, The data sheet for intel 82576 advertises IP TX/RX checksum offload but the driver does not set CSUM_IP in ifp->if_hwassist. Does this mean that driver (and chip) do not support IP TX checksum offload or the support for TX is not yet included in the driver? _