/*********************************************************
- * Copyright (C) 2005-2014,2017-2018 VMware, Inc. All rights reserved.
+ * Copyright (C) 2005-2014,2017-2019 VMware, Inc. All rights reserved.
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License as published by the
ASSERT(priority < 8);
tag->typeNBO = ETH_TYPE_802_1PQ_NBO;
- tag->priority = priority;
+ tag->priority = (uint16)priority;
tag->canonical = 0; // bit order (should be 0)
tag->vidHi = vlanId >> 8;
tag->vidLo = vlanId & 0xff;
{
ASSERT(Eth_IsFrameTagged(eh));
- return eh->e802_1pq.tag.priority;
+ return (uint8)eh->e802_1pq.tag.priority;
}