cnic: Put rx/tx ring allocation in separate function.