Print this page
6601 Various GLD drivers return EINVAL instead of ENOTSUP for unused mac_prop_id_t's
Reviewed by: Garrett D'Amore <garrett@damore.org>
Reviewed by: Dan McDonald <danmcd@omniti.com>
Reviewed by: Igor Kozhukhov <ikozhukhov@gmail.com>

@@ -18,10 +18,11 @@
  *
  * CDDL HEADER END
  */
 /*
  * Copyright (c) 2006, 2010, Oracle and/or its affiliates. All rights reserved.
+ * Copyright 2016 OmniTI Computer Consulting, Inc. All rights reserved.
  */
 
 /*
  * SunOs MT STREAMS NIU/Neptune 10Gb Ethernet Device Driver.
  */

@@ -5134,20 +5135,20 @@
                 err = nxge_param_set_mac(nxgep, NULL, NULL, (char *)pr_val,
                     (caddr_t)&param_arr[param_anar_pause]);
                 return (err);
         }
 
-        return (EINVAL);
+        return (ENOTSUP);
 }
 
 static int
 nxge_get_priv_prop(p_nxge_t nxgep, const char *pr_name, uint_t pr_valsize,
     void *pr_val)
 {
         p_nxge_param_t  param_arr = nxgep->param_arr;
         char            valstr[MAXNAMELEN];
-        int             err = EINVAL;
+        int             err = ENOTSUP;
         uint_t          strsize;
 
         NXGE_DEBUG_MSG((nxgep, NXGE_CTL,
             "==> nxge_get_priv_prop: property %s", pr_name));