MFC r275358 r275483 r276982 - Removing M_FLOWID by hps@r275358:Start process of removing the use of the deprecated "M_FLOWID" flagfrom the FreeBSD network code. The flag is still kept around in the"sys/mbuf.h" header file, but does no longer have any users. Insteadthe "m_pkthdr.rsstype" field in the mbuf structure is now used todecide the meaning of the "m_pkthdr.flowid" field. To modify the"m_pkthdr.rsstype" field please use the existing "M_HASHTYPE_XXX"macros as defined in the "sys/mbuf.h" header file.This patch introduces new behaviour in the transmit direction.Previously network drivers checked if "M_FLOWID" was set in "m_flags"before using the "m_pkthdr.flowid" field. This check has now now beenreplaced by checking if "M_HASHTYPE_GET(m)" is different from"M_HASHTYPE_NONE". In the future more hashtypes will be added, forexample hashtypes for hardware dedicated flows."M_HASHTYPE_OPAQUE" indicates that the "m_pkthdr.flowid" value isvalid and has no particular type. This change removes the need for an"if" statement in TCP transmit code checking for the presence of avalid flowid value. The "if" statement mentioned above is now a directvariable assignment which is then later checked by the respectivenetwork drivers like before.r275483:Remove M_FLOWID from SCTP code.r276982:Remove no longer used "M_FLOWID" flag from mbuf.h and update the netisrmanpage.Note: The FreeBSD version has been bumped.Reviewed by: hps, tuexenSponsored by: Limelight Networks
MFC r258779,r258780,r258787,r258822:Fix undefined behavior: (1 << 31) is not defined as 1 is an int and thisshifts into the sign bit. Instead use (1U << 31) which gets theexpected result.Similar to the (1 << 31) case it is not defined to do (2 << 30).This fix is not ideal as it assumes a 32 bit int, but does fix the issuefor most cases.A similar change was made in OpenBSD.
MFC r258155ql_hw.[c,h]: set minimum thresholds on pkt size for lro path.ql_ioctl.c: validate the length and address of buffer passed to QL_RD_FW_DUMPMFC r258156qls_ioctl.c: Validate the buffer and its length passed to QLA_MPI_DUMP. copyout dump only if qls_mpi_core_dump() is successful.(like to credit x90c for pointing the issue)Approved by: re (delphij)
Copy head (r256279) to stable/10 as part of the 10.0-RELEASE cycle.Approved by: re (implicit)Sponsored by: The FreeBSD Foundation
Add Qlogic 10Gb Ethernet Driver for Qlogic 8100 Series CNA AdapterDriver version (v2.0.0)Submitted by: David C Somayajulu (davidcs@freebsd.org) QLogic CorporationApproved by: George Neville-Neil (gnn@freebsd.org)