From lchen@zen.lhaven.homeip.net  Sat Mar 15 21:33:16 2014
Return-Path: <lchen@zen.lhaven.homeip.net>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1])
	(using TLSv1 with cipher ADH-AES256-SHA (256/256 bits))
	(No client certificate requested)
	by hub.freebsd.org (Postfix) with ESMTPS id 98C7395
	for <FreeBSD-gnats-submit@freebsd.org>; Sat, 15 Mar 2014 21:33:16 +0000 (UTC)
Received: from mho-01-ewr.mailhop.org (mho-03-ewr.mailhop.org [204.13.248.66])
	(using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits))
	(No client certificate requested)
	by mx1.freebsd.org (Postfix) with ESMTPS id 68BB18AA
	for <FreeBSD-gnats-submit@freebsd.org>; Sat, 15 Mar 2014 21:33:15 +0000 (UTC)
Received: from ip70-179-144-228.fv.ks.cox.net ([70.179.144.228] helo=zen.lhaven.homeip.net)
	by mho-01-ewr.mailhop.org with esmtpsa (TLSv1:AES256-SHA:256)
	(Exim 4.72)
	(envelope-from <lchen@zen.lhaven.homeip.net>)
	id 1WOwCZ-000Ntj-NY
	for FreeBSD-gnats-submit@freebsd.org; Sat, 15 Mar 2014 21:33:07 +0000
Received: from zen.lhaven.homeip.net (localhost [127.0.0.1])
	by zen.lhaven.homeip.net (8.14.8/8.14.7) with ESMTP id s2FLX5kW023528;
	Sat, 15 Mar 2014 16:33:05 -0500 (CDT)
	(envelope-from lchen@zen.lhaven.homeip.net)
Received: (from lchen@localhost)
	by zen.lhaven.homeip.net (8.14.8/8.14.7/Submit) id s2FLX0R4023519;
	Sat, 15 Mar 2014 16:33:00 -0500 (CDT)
	(envelope-from lchen)
Message-Id: <201403152133.s2FLX0R4023519@zen.lhaven.homeip.net>
Date: Sat, 15 Mar 2014 16:33:00 -0500 (CDT)
From: Lawrence "The Dreamer" Chen <beastie@tardisi.com>
Reply-To: Lawrence "The Dreamer" Chen <beastie@tardisi.com>
To: FreeBSD-gnats-submit@freebsd.org
Subject: [patch] sysutils/pefs-kmod: AESNI support is missing
X-Send-Pr-Version: 3.114
X-GNATS-Notify:

>Number:         187620
>Category:       ports
>Synopsis:       [patch] sysutils/pefs-kmod: AESNI support is missing
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    gleb
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sat Mar 15 21:40:00 UTC 2014
>Closed-Date:    
>Last-Modified:  Sat Mar 15 21:40:04 UTC 2014
>Originator:     Lawrence "The Dreamer" Chen
>Release:        FreeBSD 9.2-RELEASE-p3 amd64
>Organization:
>Environment:
System: FreeBSD zen.lhaven.homeip.net 9.2-RELEASE-p3 FreeBSD 9.2-RELEASE-p3 #0: Sat Jan 11 03:25:02 UTC 2014 root@amd64-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC amd64

	FreeBSD mew.cns.ksu.edu 9.2-RELEASE-p3 FreeBSD 9.2-RELEASE-p3 #0: Sat Jan 11 03:25:02 UTC 2014 root@amd64-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC amd64


	
>Description:
	
	AESNI support is missing from pefs-kmod.  Examining the source there's
	is is controlled by PEFS_AESNI, but there's no option to turn it on.
>How-To-Repeat:
	
>Fix:

	
	Add option to turn on AESNI support.

	I built this port on machine with AESNI and one without AESNI, both
	run the same release of FreeBSD.  No problems using it on both,
	just get different kernel messages when it loads.

--- patch begins here ---
--- Makefile.orig	2014-03-13 12:36:48.957873074 -0500
+++ Makefile	2014-03-13 12:35:21.828874302 -0500
@@ -17,6 +17,11 @@
 
 ONLY_FOR_ARCHS=	i386 amd64	# not tested on other archs
 
+OPTIONS_DEFINE=	AESNI
+AESNI_DESC=	Use AES accelerator on (some) Intel CPUs
+
+AESNI_MAKE_ENV=	PEFS_AESNI=yes
+
 USES=		kmod uidfix
 
 .include <bsd.port.mk>
--- patch ends here ---


>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports-bugs->gleb 
Responsible-Changed-By: edwin 
Responsible-Changed-When: Sat Mar 15 21:40:03 UTC 2014 
Responsible-Changed-Why:  
Over to maintainer (via the GNATS Auto Assign Tool) 

http://www.freebsd.org/cgi/query-pr.cgi?pr=187620 
>Unformatted:
