Ignore:
Timestamp:
Jul 13, 2017, 6:31:46 AM (4 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
5, 5-freebsd-12, 6-freebsd-12, master
Children:
24866e6
Parents:
e818128
git-author:
Sebastian Huber <sebastian.huber@…> (07/13/17 06:31:46)
git-committer:
Sebastian Huber <sebastian.huber@…> (10/23/17 07:24:07)
Message:

dpaa: Add "libbsd,dedicated-portal" to QMan portals

By default, the network interfaces use a pool channel, see
dpaa_get_channel() in dpaa_eth_priv_probe(). To enable a dedicated QMan
software portal, use libbsd,dedicated-portal = "enabled";. This option
is useful for special purpose 10Gbit/s Ethernet processing.

/ {

soc: soc@ffe000000 {

fman0: fman@400000 {

enet7: ethernet@f2000 {

libbsd,dedicated-portal = "enabled";

};

};

};

};

File:
1 edited

Legend:

Unmodified
Added
Removed
  • linux/drivers/net/ethernet/freescale/dpaa/dpaa_eth.c

    re818128 rde5791b  
    30793079        priv->mac_dev = mac_dev;
    30803080
     3081#ifdef __rtems__
     3082        if (mac_dev->use_dedicated_portal) {
     3083                struct qman_portal *portal;
     3084
     3085                portal = qman_get_dedicated_portal(0);
     3086                BSD_ASSERT(portal != NULL);
     3087                mac_dev->portal = portal;
     3088                channel = qman_portal_get_channel(portal);
     3089                priv->channel = (u16)channel;
     3090        } else {
     3091#endif /* __rtems__ */
    30813092        channel = dpaa_get_channel();
    30823093        if (channel < 0) {
     
    30923103         */
    30933104        dpaa_eth_add_channel(priv->channel);
     3105#ifdef __rtems__
     3106        }
     3107#endif /* __rtems__ */
    30943108
    30953109        dpaa_fq_setup(priv, &dpaa_fq_cbs, priv->mac_dev->port[TX]);
Note: See TracChangeset for help on using the changeset viewer.