eventdev: add port attribute function